Last updated on 2020-08-07 01:50:18 CEST.
Package | ERROR | WARN | NOTE | OK |
---|---|---|---|---|
anytime | 12 | |||
AsioHeaders | 12 | |||
BH | 7 | 5 | ||
binb | 1 | 11 | ||
corels | 4 | 8 | ||
dang | 12 | |||
digest | 12 | |||
drat | 12 | |||
gaussfacts | 1 | 11 | ||
gcbd | 1 | 8 | ||
gettz | 12 | |||
gunsales | 1 | 11 | ||
inline | 12 | |||
linl | 1 | 11 | ||
littler | 6 | |||
nanotime | 10 | 2 | ||
pinp | 1 | 11 | ||
pkgKitten | 12 | |||
prrd | 12 | |||
random | 12 | |||
RApiDatetime | 12 | |||
RApiSerialize | 12 | |||
Rblpapi | 11 | |||
Rcpp | 8 | 4 | ||
RcppAnnoy | 3 | 9 | ||
RcppAPT | 9 | |||
RcppArmadillo | 7 | 5 | ||
RcppBDT | 4 | 8 | ||
RcppCCTZ | 12 | |||
RcppClassic | 2 | 1 | 9 | |
RcppClassicExamples | 1 | 11 | ||
RcppCNPy | 1 | 2 | 9 | |
RcppDate | 12 | |||
RcppDE | 12 | |||
RcppEigen | 7 | 5 | ||
RcppExamples | 12 | |||
RcppGetconf | 2 | 7 | ||
RcppGSL | 12 | |||
RcppMsgPack | 7 | 5 | ||
RcppNLoptExample | 12 | |||
RcppQuantuccia | 12 | |||
RcppRedis | 11 | |||
RcppSimdJson | 2 | 4 | 5 | |
RcppSMC | 12 | |||
RcppStreams | 3 | 9 | ||
RcppTOML | 2 | 10 | ||
RcppXts | 12 | |||
RcppZiggurat | 2 | 10 | ||
RDieHarder | 1 | 7 | 3 | |
rfoaas | 12 | |||
RInside | 4 | 8 | ||
rmsfact | 1 | 11 | ||
RProtoBuf | 6 | 5 | ||
RPushbullet | 12 | |||
RQuantLib | 1 | 4 | 4 | |
RVowpalWabbit | 2 | 1 | 5 | |
sanitizers | 2 | 10 | ||
tint | 12 | |||
ttdo | 12 | |||
x13binary | 12 |
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: NOTE: 7, OK: 5
Version: 1.72.0-3
Check: installed package size
Result: NOTE
installed size is 135.0Mb
sub-directories of 1Mb or more:
include 134.9Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Current CRAN status: NOTE: 1, OK: 11
Version: 0.0.6
Check: Rd cross-references
Result: NOTE
Undeclared packages ‘tint’, ‘pinp’, ‘linl’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: NOTE: 4, OK: 8
Version: 0.0.2
Check: installed package size
Result: NOTE
installed size is 5.5Mb
sub-directories of 1Mb or more:
libs 2.7Mb
sample_data 2.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: NOTE: 1, OK: 11
Version: 0.0.2
Check: Rd cross-references
Result: NOTE
Undeclared packages ‘fortunes’, ‘rmsfact’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: WARN: 1, NOTE: 8
Version: 0.2.6
Flags: --no-examples --no-tests --no-vignettes
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: 'gputools'
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.2.6
Flags: --no-vignettes
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘gputools’
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.2.6
Check: package dependencies
Result: NOTE
Package suggested but not available for checking: ‘gputools’
Flavors: r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 0.2.6
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
...
--- re-building ‘gcbd.Rnw’ using Sweave
Warning in packageDescription("gputools") :
no package 'gputools' was found
Error: processing vignette 'gcbd.Rnw' failed with diagnostics:
at gcbd.Rnw:860, subscript out of bounds
--- failed re-building ‘gcbd.Rnw’
SUMMARY: processing the following file failed:
‘gcbd.Rnw’
Error: Vignette re-building failed.
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.2.6
Check: re-building of vignette outputs
Result: NOTE
Error(s) in re-building vignettes:
...
--- re-building ‘gcbd.Rnw’ using Sweave
Warning in packageDescription("gputools") :
no package 'gputools' was found
Error: processing vignette 'gcbd.Rnw' failed with diagnostics:
at gcbd.Rnw:860, subscript out of bounds
--- failed re-building ‘gcbd.Rnw’
SUMMARY: processing the following file failed:
‘gcbd.Rnw’
Error: Vignette re-building failed.
Execution halted
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: OK: 12
Current CRAN status: WARN: 1, OK: 11
Version: 0.1.2
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
--- re-building ‘gunsales.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
sh: line 1: 13995 Trace/BPT trap: 5 /Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/Rlib/3.6/x13binary/bin/x13ashtml /tmp/RtmpZhJtlI/x1336a159a99349/iofile -n -s 2> /dev/null
dyld: lazy symbol binding failed: Symbol not found: _mkostemp
Referenced from: /Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/Rlib/3.6/x13binary/bin/../lib/libgfortran.3.dylib (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _mkostemp
Referenced from: /Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/Rlib/3.6/x13binary/bin/../lib/libgfortran.3.dylib (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
Program received signal SIGTRAP: Trace/breakpoint trap.
Backtrace for this error:
#0 0x1251da579
#1 0x1251d9945
#2 0x7fff9ae44529
Quitting from lines 33-34 (gunsales.Rmd)
Error: processing vignette 'gunsales.Rmd' failed with diagnostics:
X-13 has returned a non-zero exist status, which means that the current spec file cannot be processed for an unknown reason.
--- failed re-building ‘gunsales.Rmd’
SUMMARY: processing the following file failed:
‘gunsales.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-oldrel-macos-x86_64
Current CRAN status: OK: 12
Current CRAN status: NOTE: 1, OK: 11
Version: 0.0.4
Check: Rd cross-references
Result: NOTE
Undeclared package ‘pinp’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: OK: 6
Current CRAN status: ERROR: 10, OK: 2
Version: 0.2.4
Check: tests
Result: ERROR
Running 'POSIXt.R' [1s/2s]
Running 'data.frame.R' [1s/2s]
Running 'runTests.R' [2s/2s]
Running 'simpleTests.R' [1s/2s]
Running 'zooTests.R' [1s/1s]
Running the tests in 'tests/runTests.R' failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.01 0 0.01
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.01 0 0.026
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.003 0 0.002
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 5 01:54:35 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/nanotime/unitTests
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.24 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.1 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.01 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.01 seconds)
test_binary_mul: (1 checks) ... OK (0.16 seconds)
test_c: (2 checks) ... OK (0.01 seconds)
test_format_default: (3 checks) ... OK (0.06 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0.02 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.01 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.01 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.03 seconds)
test_subsassign: (2 checks) ... OK (0.01 seconds)
test_subset: (2 checks) ... OK (0.01 seconds)
test_summary: (2 checks) ... OK (0.02 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.02 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.03 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.04 seconds)
test_integer+nanotime: (2 checks) ... OK (0.01 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.01 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.02 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’ [1s/2s]
Running ‘data.frame.R’ [1s/2s]
Running ‘runTests.R’ [1s/3s]
Running ‘simpleTests.R’ [1s/2s]
Running ‘zooTests.R’ [1s/1s]
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.007 0 0.006
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.006 0 0.006
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.002 0 0.002
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Thu Aug 6 22:51:49 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/nanotime/unitTests
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.34 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.16 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.01 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.02 seconds)
test_binary_mul: (1 checks) ... OK (0 seconds)
test_c: (2 checks) ... OK (0.02 seconds)
test_format_default: (3 checks) ... OK (0.05 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.02 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.02 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.03 seconds)
test_subsassign: (2 checks) ... OK (0.02 seconds)
test_subset: (2 checks) ... OK (0 seconds)
test_summary: (2 checks) ... OK (0.03 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.03 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.03 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.06 seconds)
test_integer+nanotime: (2 checks) ... OK (0.02 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0 seconds)
test_nanotime+integer64: (2 checks) ... OK (0 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.02 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0.02 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.01 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’
Running ‘data.frame.R’
Running ‘runTests.R’
Running ‘simpleTests.R’
Running ‘zooTests.R’
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.013 0 0.062
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.009 0.003 0.052
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.003 0.001 0.02
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 5 04:13:24 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/data/gannet/ripley/R/packages/tests-clang/nanotime.Rcheck/nanotime/unitTests
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-clang/nanotime.Rcheck/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.4 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.17 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.03 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-clang/nanotime.Rcheck/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0.02 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0.02 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0.02 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0.02 seconds)
test_as_POSIXct: (3 checks) ... OK (0.02 seconds)
test_binary_mul: (1 checks) ... OK (0.2 seconds)
test_c: (2 checks) ... OK (0.04 seconds)
test_format_default: (3 checks) ... OK (0.15 seconds)
test_format_fmt_default: (1 checks) ... OK (0.02 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0.02 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.03 seconds)
test_format_tz_from_options: (1 checks) ... OK (0.03 seconds)
test_format_tzone: (2 checks) ... OK (0.03 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0.03 seconds)
test_nano_div_ANY: (1 checks) ... OK (0.02 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0.02 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0.02 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.02 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0.02 seconds)
test_nanotime_character: (3 checks) ... OK (0.08 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0.04 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.1 seconds)
test_subsassign: (2 checks) ... OK (0.06 seconds)
test_subset: (2 checks) ... OK (0.04 seconds)
test_summary: (2 checks) ... OK (0.13 seconds)
test_unary_minus: (1 checks) ... OK (0.02 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-clang/nanotime.Rcheck/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.1 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.11 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0.03 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.17 seconds)
test_integer+nanotime: (2 checks) ... OK (0.03 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.03 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.03 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0.02 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.03 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.07 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.03 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.04 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-clang/nanotime.Rcheck/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.15 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’
Running ‘data.frame.R’
Running ‘runTests.R’
Running ‘simpleTests.R’
Running ‘zooTests.R’
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.01 0.002 0.025
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.009 0.003 0.026
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.003 0 0.003
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 5 02:13:58 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/data/gannet/ripley/R/packages/tests-devel/nanotime.Rcheck/nanotime/unitTests
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-devel/nanotime.Rcheck/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.61 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.27 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.04 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-devel/nanotime.Rcheck/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0.01 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0.01 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0.01 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0.01 seconds)
test_as_POSIXct: (3 checks) ... OK (0.02 seconds)
test_binary_mul: (1 checks) ... OK (0.02 seconds)
test_c: (2 checks) ... OK (0.03 seconds)
test_format_default: (3 checks) ... OK (0.1 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0.01 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0.01 seconds)
test_format_tz: (4 checks) ... OK (0.02 seconds)
test_format_tz_from_options: (1 checks) ... OK (0.01 seconds)
test_format_tzone: (2 checks) ... OK (0.02 seconds)
test_is.na: (2 checks) ... OK (0.01 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0.01 seconds)
test_nano_div_ANY: (1 checks) ... OK (0.01 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0.01 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0.01 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0.01 seconds)
test_nanotime_character: (3 checks) ... OK (0.03 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0.01 seconds)
test_nanotime_generic: (2 checks) ... OK (0.01 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.04 seconds)
test_subsassign: (2 checks) ... OK (0.04 seconds)
test_subset: (2 checks) ... OK (0.02 seconds)
test_summary: (2 checks) ... OK (0.08 seconds)
test_unary_minus: (1 checks) ... OK (0.01 seconds)
test_unary_plus: (1 checks) ... OK (0.01 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-devel/nanotime.Rcheck/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0.01 seconds)
test_Logic: (6 checks) ... OK (0.06 seconds)
test_Math: (1 checks) ... OK (0.01 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.06 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.13 seconds)
test_integer+nanotime: (2 checks) ... OK (0.02 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.02 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.03 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0.01 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.02 seconds)
test_nanotime-character: (1 checks) ... OK (0.01 seconds)
test_nanotime-integer: (2 checks) ... OK (0.02 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.02 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.02 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /data/gannet/ripley/R/packages/tests-devel/nanotime.Rcheck/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.04 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.2.4
Check: tests
Result: ERROR
Running 'POSIXt.R' [2s]
Running 'data.frame.R' [2s]
Running 'runTests.R' [3s]
Running 'simpleTests.R' [2s]
Running 'zooTests.R' [2s]
Running the tests in 'tests/runTests.R' failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0 0 0.01
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.02 0 0.02
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0 0 0
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Mon Aug 03 23:51:51 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
D:/temp/Rtmp2VGkAo/RLIBS_12ca850057b95/nanotime/unitTests
---------------------------
Test file: D:/temp/Rtmp2VGkAo/RLIBS_12ca850057b95/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.18 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.01 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.02 seconds)
---------------------------
Test file: D:/temp/Rtmp2VGkAo/RLIBS_12ca850057b95/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0.02 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.03 seconds)
test_binary_mul: (1 checks) ... OK (0 seconds)
test_c: (2 checks) ... OK (0.02 seconds)
test_format_default: (3 checks) ... OK (0.03 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0.02 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.02 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0.01 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0.02 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0.02 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0.03 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.03 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0.03 seconds)
test_nanotime_character: (3 checks) ... OK (0.03 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.03 seconds)
test_subsassign: (2 checks) ... OK (0.02 seconds)
test_subset: (2 checks) ... OK (0 seconds)
test_summary: (2 checks) ... OK (0.04 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/Rtmp2VGkAo/RLIBS_12ca850057b95/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.05 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.03 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0.02 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.04 seconds)
test_integer+nanotime: (2 checks) ... OK (0.02 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0.02 seconds)
test_nanotime+numeric: (2 checks) ... OK (0 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.02 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.02 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/Rtmp2VGkAo/RLIBS_12ca850057b95/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.03 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-devel-windows-ix86+x86_64
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’ [1s/2s]
Running ‘data.frame.R’ [1s/2s]
Running ‘runTests.R’ [2s/2s]
Running ‘simpleTests.R’ [1s/2s]
Running ‘zooTests.R’ [1s/2s]
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.009 0 0.009
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.005 0.004 0.009
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.003 0 0.002
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 5 17:26:50 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/nanotime/unitTests
---------------------------
Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.22 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.01 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.01 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0.06 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.01 seconds)
test_binary_mul: (1 checks) ... OK (0.01 seconds)
test_c: (2 checks) ... OK (0.01 seconds)
test_format_default: (3 checks) ... OK (0.03 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.01 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.01 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.02 seconds)
test_subsassign: (2 checks) ... OK (0.01 seconds)
test_subset: (2 checks) ... OK (0.01 seconds)
test_summary: (2 checks) ... OK (0.03 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.02 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.02 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.04 seconds)
test_integer+nanotime: (2 checks) ... OK (0.01 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.01 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.01 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’
Running ‘data.frame.R’
Running ‘runTests.R’
Running ‘simpleTests.R’
Running ‘zooTests.R’
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
In addition: Warning messages:
1: In check_tzones(target, current) : 'tzone' attributes are inconsistent
2: In check_tzones(target, current) : 'tzone' attributes are inconsistent
3: In check_tzones(target, current) : 'tzone' attributes are inconsistent
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.01 0.001 0.011
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.004 0.001 0.004
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ... done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 5 04:20:16 2020
***********************************************
Number of test functions: 65
Number of errors: 1
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 1 error, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/home/ripley/R/Lib32/nanotime/unitTests
---------------------------
Test file: /home/ripley/R/Lib32/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.3 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.01 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.02 seconds)
---------------------------
Test file: /home/ripley/R/Lib32/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0.01 seconds)
test_as_POSIXct: (3 checks) ... OK (0.11 seconds)
test_binary_mul: (1 checks) ... OK (0.01 seconds)
test_c: (2 checks) ... OK (0.01 seconds)
test_format_default: (3 checks) ... OK (0.03 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (0 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (0 checks) ... OK (0 seconds)
test_format_na: (0 checks) ... OK (0 seconds)
test_format_tz: (0 checks) ... OK (0 seconds)
test_format_tz_from_options: (0 checks) ... OK (0 seconds)
test_format_tzone: (0 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (0 checks) ... OK (0 seconds)
test_nanotime_character_keep_names: (0 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: (0 checks) ... OK (0 seconds)
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.02 seconds)
test_subsassign: (2 checks) ... OK (0.01 seconds)
test_subset: (2 checks) ... OK (0.01 seconds)
test_summary: (2 checks) ... OK (0.03 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/ripley/R/Lib32/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.03 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0.01 seconds)
test_Summary: (4 checks) ... OK (0.03 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.07 seconds)
test_integer+nanotime: (2 checks) ... OK (0.06 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.01 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/ripley/R/Lib32/nanotime/unitTests/test_zoo.R
test_zoo: (0 checks) ... OK (0 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.2.4
Check: tests
Result: ERROR
Running ‘POSIXt.R’ [1s/1s]
Running ‘data.frame.R’ [1s/2s]
Running ‘runTests.R’ [2s/2s]
Running ‘simpleTests.R’ [1s/1s]
Running ‘zooTests.R’ [1s/1s]
Running the tests in ‘tests/runTests.R’ failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.008 0 0.008
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.008 0 0.007
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0.002 0 0.002
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Thu Aug 6 09:27:43 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/nanotime/unitTests
---------------------------
Test file: /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.27 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.01 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.02 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0.11 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.01 seconds)
test_binary_mul: (1 checks) ... OK (0.01 seconds)
test_c: (2 checks) ... OK (0.01 seconds)
test_format_default: (3 checks) ... OK (0.02 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.01 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.01 seconds)
test_subsassign: (2 checks) ... OK (0.01 seconds)
test_subset: (2 checks) ... OK (0.01 seconds)
test_summary: (2 checks) ... OK (0.02 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.02 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.02 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.04 seconds)
test_integer+nanotime: (2 checks) ... OK (0.01 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.01 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.01 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0.01 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: /home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.01 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.2.4
Check: tests
Result: ERROR
Running 'POSIXt.R' [1s]
Running 'data.frame.R' [1s]
Running 'runTests.R' [2s]
Running 'simpleTests.R' [1s]
Running 'zooTests.R' [1s]
Running the tests in 'tests/runTests.R' failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0.02 0 0.01
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0.01 0 0.01
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0 0 0
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Sun Aug 02 23:42:59 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
D:/temp/RtmpAZRqgA/RLIBS_1a3c078381b9f/nanotime/unitTests
---------------------------
Test file: D:/temp/RtmpAZRqgA/RLIBS_1a3c078381b9f/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.17 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.01 seconds)
test_data_frame_rbind: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/RtmpAZRqgA/RLIBS_1a3c078381b9f/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0.02 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0 seconds)
test_as_POSIXct: (3 checks) ... OK (0.02 seconds)
test_binary_mul: (1 checks) ... OK (0.01 seconds)
test_c: (2 checks) ... OK (0 seconds)
test_format_default: (3 checks) ... OK (0.05 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0.01 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0.02 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0.02 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.02 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0 seconds)
test_subsassign: (2 checks) ... OK (0.02 seconds)
test_subset: (2 checks) ... OK (0 seconds)
test_summary: (2 checks) ... OK (0.01 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0.02 seconds)
---------------------------
Test file: D:/temp/RtmpAZRqgA/RLIBS_1a3c078381b9f/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0 seconds)
test_Math: (1 checks) ... OK (0.02 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0.01 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.03 seconds)
test_integer+nanotime: (2 checks) ... OK (0 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0 seconds)
test_nanotime+integer64: (2 checks) ... OK (0.02 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0.01 seconds)
test_nanotime-integer64: (2 checks) ... OK (0 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/RtmpAZRqgA/RLIBS_1a3c078381b9f/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.01 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-release-windows-ix86+x86_64
Version: 0.2.4
Check: tests
Result: ERROR
Running 'POSIXt.R' [1s]
Running 'data.frame.R' [1s]
Running 'runTests.R' [2s]
Running 'simpleTests.R' [1s]
Running 'zooTests.R' [1s]
Running the tests in 'tests/runTests.R' failed.
Complete output:
>
> pkg <- "nanotime"
>
> if (!requireNamespace("RUnit", quietly = TRUE)) {
+ cat("R package 'RUnit' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("nanotime", quietly = TRUE)) {
+ cat("R package 'nanotime' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else if (!requireNamespace("bit64", quietly = TRUE)) {
+ cat("R package 'bit64' cannot be loaded -- no unit tests run for package", pkg, "\n")
+ } else {
+
+ library(RUnit)
+ library(nanotime)
+ library(bit64)
+
+ ## Define tests
+ testSuite <- defineTestSuite(name=paste(pkg, "Unit Tests"),
+ dirs=system.file("unitTests", package=pkg),
+ testFileRegexp = "^test_.+\\.[rR]$",
+ testFuncRegexp = "^[Tt]est+")
+
+ ## Run tests
+ tests <- runTestSuite(testSuite)
+
+ ## Print results
+ printTextProtocol(tests)
+
+ ## Return success or failure to R CMD CHECK
+ if (getErrors(tests)$nFail > 0) {
+ print(getErrors(tests)$nFail)
+ stop("TEST FAILED!")
+ }
+ if (getErrors(tests)$nErr > 0) {
+ print(getErrors(tests)$nErr)
+ stop("TEST HAD ERRORS!")
+ }
+ if (getErrors(tests)$nTestFunc < 1) {
+ print(getErrors(tests)$nTestFunc)
+ stop("NO TEST FUNCTIONS RUN!")
+ }
+
+ }
Loading required package: bit
Attaching package: 'bit'
The following object is masked from 'package:base':
xor
Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64
Attaching package: 'bit64'
The following objects are masked from 'package:base':
%in%, :, is.double, match, order, rank
Executing test function test_data_frame_cbind ... done successfully.
Executing test function test_data_frame_constructor ... done successfully.
Executing test function test_data_frame_rbind ... done successfully.
Executing test function test_ANY_Logic_nano ... Error in 1 | nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_ANY_minus_nano ... Error in 1 - nanotime(2) : invalid operand types
done successfully.
Executing test function test_ANY_plus_nano ... Error in "a" + nanotime(2) : invalid operand types
done successfully.
Executing test function test_Math2_nano ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64"))) :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Math_nano ... Error in sin(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_as_Date ... done successfully.
Executing test function test_as_POSIXct ... done successfully.
Executing test function test_binary_mul ... Note: method with signature 'nanotime#ANY' chosen for function '*',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) * nanotime(2) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_c ... done successfully.
Executing test function test_format_default ... done successfully.
Executing test function test_format_fmt_default ... done successfully.
Executing test function test_format_fmt_from_options ... done successfully.
Executing test function test_format_fmt_from_parameter ... done successfully.
Executing test function test_format_na ... done successfully.
Executing test function test_format_tz ... done successfully.
Executing test function test_format_tz_from_options ... done successfully.
Executing test function test_format_tzone ... done successfully.
Executing test function test_is.na ... done successfully.
Executing test function test_nano_Logic_ANY ... Error in nanotime(1) | 1 :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_nano_div_ANY ... Error in nanotime(1)/1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_minus_ANY ... Error in nanotime(1) - "a" : invalid operand types
done successfully.
Executing test function test_nano_mul_ANY ... Error in nanotime(1) * 1 : operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_mul_nano ... Error in nanotime(1) * nanotime(1) :
operation not defined for "nanotime" objects
done successfully.
Executing test function test_nano_plus_ANY ... Error in nanotime(1) + "a" : invalid operand types
done successfully.
Executing test function test_nanotime_Date ... Timing stopped at: 0 0 0
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_POSIXct ... done successfully.
Executing test function test_nanotime_POSIXct_keep_names ... done successfully.
Executing test function test_nanotime_POSIXlt ... done successfully.
Executing test function test_nanotime_POSIXlt_keep_names ... done successfully.
Executing test function test_nanotime_character ... done successfully.
Executing test function test_nanotime_character_keep_names ... done successfully.
Executing test function test_nanotime_generic ... done successfully.
Executing test function test_nanotime_matrix ... Timing stopped at: 0 0 0
Error in abs(target) : non-numeric argument to mathematical function
done successfully.
Executing test function test_nanotime_numeric_keep_names ... done successfully.
Executing test function test_square_bracket ... done successfully.
Executing test function test_subsassign ... done successfully.
Executing test function test_subset ... done successfully.
Executing test function test_summary ... done successfully.
Executing test function test_unary_minus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_unary_plus ... Error in -nanotime(1) : unary '-' is not defined for "nanotime" objects
done successfully.
Executing test function test_Complex ... Error in Arg(nanotime(1)) : non-numeric argument to function
done successfully.
Executing test function test_Logic ... Note: method with signature 'nanotime#ANY' chosen for function '&',
target signature 'nanotime#nanotime'.
"ANY#nanotime" would also be valid
Error in nanotime(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & as.integer64(1) :
operations are possible only for numeric, logical or complex types
Error in nanotime(1) & TRUE :
operations are possible only for numeric, logical or complex types
Error in as.integer64(1) & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in 1L & nanotime(1) :
operations are possible only for numeric, logical or complex types
Error in FALSE & nanotime(1) :
operations are possible only for numeric, logical or complex types
done successfully.
Executing test function test_Math ... Error in abs(nanotime(1)) : non-numeric argument to mathematical function
done successfully.
Executing test function test_Math2 ... Error in round(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
non-numeric argument to mathematical function
done successfully.
Executing test function test_Summary ... Error in sum(new("nanotime", .S3Class = "integer64", structure(4.94065645841247e-324, class = "integer64")), :
invalid 'type' (nanotime) of argument
done successfully.
Executing test function test_character+nanotime ... Error in "A" + nanotime(0) : invalid operand types
done successfully.
Executing test function test_character-nanotime ... Error in "A" - nanotime(0) : invalid operand types
done successfully.
Executing test function test_compare_ANY_nanotime ... Timing stopped at: 0 0 0
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
done successfully.
Executing test function test_compare_nanotime_ANY ... done successfully.
Executing test function test_integer+nanotime ... done successfully.
Executing test function test_nanotime+character ... Error in nanotime(0) + "A" : invalid operand types
done successfully.
Executing test function test_nanotime+integer ... done successfully.
Executing test function test_nanotime+integer64 ... done successfully.
Executing test function test_nanotime+nanotime ... Error in nanotime(1) + nanotime(0) : invalid operand types
done successfully.
Executing test function test_nanotime+numeric ... done successfully.
Executing test function test_nanotime-character ... Error in nanotime(0) - "A" : invalid operand types
done successfully.
Executing test function test_nanotime-integer ... done successfully.
Executing test function test_nanotime-integer64 ... done successfully.
Executing test function test_nanotime-nanotime ... done successfully.
Executing test function test_numeric+nanotime ... done successfully.
Executing test function test_numeric-nanotime ... Error in 1 - nanotime(0) : invalid operand types
done successfully.
Executing test function test_zoo ...
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
done successfully.
RUNIT TEST PROTOCOL -- Wed Aug 05 15:13:23 2020
***********************************************
Number of test functions: 65
Number of errors: 2
Number of failures: 1
1 Test Suite :
nanotime Unit Tests - 65 test functions, 2 errors, 1 failure
ERROR in test_nanotime_Date: Error in abs(target) : non-numeric argument to mathematical function
ERROR in test_nanotime_matrix: Error in abs(target) : non-numeric argument to mathematical function
FAILURE in test_compare_ANY_nanotime: Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
Details
***************************
Test Suite: nanotime Unit Tests
Test function regexp: ^[Tt]est+
Test file regexp: ^test_.+\.[rR]$
Involved directory:
D:/temp/RtmpQJmqOD/RLIBS_318f452bf5752/nanotime/unitTests
---------------------------
Test file: D:/temp/RtmpQJmqOD/RLIBS_318f452bf5752/nanotime/unitTests/test_data.frame.R
test_data_frame_cbind: (1 checks) ... OK (0.16 seconds)
test_data_frame_constructor: (2 checks) ... OK (0.02 seconds)
test_data_frame_rbind: (1 checks) ... OK (0.03 seconds)
---------------------------
Test file: D:/temp/RtmpQJmqOD/RLIBS_318f452bf5752/nanotime/unitTests/test_nanotime.R
test_ANY_Logic_nano: (1 checks) ... OK (0 seconds)
test_ANY_minus_nano: (1 checks) ... OK (0.01 seconds)
test_ANY_plus_nano: (1 checks) ... OK (0 seconds)
test_Math2_nano: (1 checks) ... OK (0 seconds)
test_Math_nano: (1 checks) ... OK (0 seconds)
test_as_Date: (1 checks) ... OK (0.02 seconds)
test_as_POSIXct: (3 checks) ... OK (0.01 seconds)
test_binary_mul: (1 checks) ... OK (0 seconds)
test_c: (2 checks) ... OK (0.08 seconds)
test_format_default: (3 checks) ... OK (0.05 seconds)
test_format_fmt_default: (1 checks) ... OK (0 seconds)
test_format_fmt_from_options: (1 checks) ... OK (0 seconds)
test_format_fmt_from_parameter: (1 checks) ... OK (0 seconds)
test_format_na: (1 checks) ... OK (0 seconds)
test_format_tz: (4 checks) ... OK (0.01 seconds)
test_format_tz_from_options: (1 checks) ... OK (0 seconds)
test_format_tzone: (2 checks) ... OK (0 seconds)
test_is.na: (2 checks) ... OK (0.02 seconds)
test_nano_Logic_ANY: (1 checks) ... OK (0 seconds)
test_nano_div_ANY: (1 checks) ... OK (0 seconds)
test_nano_minus_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_ANY: (1 checks) ... OK (0 seconds)
test_nano_mul_nano: (1 checks) ... OK (0 seconds)
test_nano_plus_ANY: (1 checks) ... OK (0 seconds)
test_nanotime_Date: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_POSIXct: (1 checks) ... OK (0 seconds)
test_nanotime_POSIXct_keep_names: (1 checks) ... OK (0.02 seconds)
test_nanotime_POSIXlt: (1 checks) ... OK (0.01 seconds)
test_nanotime_POSIXlt_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_character: (3 checks) ... OK (0.02 seconds)
test_nanotime_character_keep_names: (1 checks) ... OK (0 seconds)
test_nanotime_generic: (2 checks) ... OK (0.01 seconds)
test_nanotime_matrix: ERROR !!
Error in abs(target) : non-numeric argument to mathematical function
test_nanotime_numeric_keep_names: (1 checks) ... OK (0 seconds)
test_square_bracket: (3 checks) ... OK (0.02 seconds)
test_subsassign: (2 checks) ... OK (0 seconds)
test_subset: (2 checks) ... OK (0.01 seconds)
test_summary: (2 checks) ... OK (0 seconds)
test_unary_minus: (1 checks) ... OK (0 seconds)
test_unary_plus: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/RtmpQJmqOD/RLIBS_318f452bf5752/nanotime/unitTests/test_ops.R
test_Complex: (1 checks) ... OK (0 seconds)
test_Logic: (6 checks) ... OK (0.02 seconds)
test_Math: (1 checks) ... OK (0 seconds)
test_Math2: (1 checks) ... OK (0 seconds)
test_Summary: (4 checks) ... OK (0.01 seconds)
test_character+nanotime: (1 checks) ... OK (0 seconds)
test_character-nanotime: (1 checks) ... OK (0 seconds)
test_compare_ANY_nanotime: FAILURE !! (check number 1)
Error in checkTrue(as.integer64(1) == nanotime(1)) : Test not TRUE
test_compare_nanotime_ANY: (9 checks) ... OK (0.05 seconds)
test_integer+nanotime: (2 checks) ... OK (0 seconds)
test_nanotime+character: (1 checks) ... OK (0 seconds)
test_nanotime+integer: (2 checks) ... OK (0.01 seconds)
test_nanotime+integer64: (2 checks) ... OK (0 seconds)
test_nanotime+nanotime: (1 checks) ... OK (0 seconds)
test_nanotime+numeric: (2 checks) ... OK (0.02 seconds)
test_nanotime-character: (1 checks) ... OK (0 seconds)
test_nanotime-integer: (2 checks) ... OK (0 seconds)
test_nanotime-integer64: (2 checks) ... OK (0.02 seconds)
test_nanotime-nanotime: (2 checks) ... OK (0 seconds)
test_numeric+nanotime: (2 checks) ... OK (0 seconds)
test_numeric-nanotime: (1 checks) ... OK (0 seconds)
---------------------------
Test file: D:/temp/RtmpQJmqOD/RLIBS_318f452bf5752/nanotime/unitTests/test_zoo.R
test_zoo: (1 checks) ... OK (0.03 seconds)
[1] 1
Error: TEST FAILED!
Execution halted
Flavor: r-oldrel-windows-ix86+x86_64
Current CRAN status: NOTE: 1, OK: 11
Version: 0.0.9
Check: Rd cross-references
Result: NOTE
Undeclared package ‘rticles’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: NOTE: 11
Version: 0.3.10
Check: whether package can be installed
Result: NOTE
Found the following notes/warnings:
Non-staged installation was used
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.3.10
Check: installed package size
Result: NOTE
installed size is 16.7Mb
sub-directories of 1Mb or more:
blp 7.1Mb
libs 8.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.3.10
Check: top-level files
Result: NOTE
‘configure’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: NOTE: 8, OK: 4
Version: 1.0.5
Check: installed package size
Result: NOTE
installed size is 15.1Mb
sub-directories of 1Mb or more:
doc 1.1Mb
include 6.4Mb
libs 5.5Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 1.0.5
Check: foreign function calls
Result: NOTE
Registration problem:
symbol ‘symbol’ in the local frame:
.Call(symbol)
See chapter ‘System and foreign language interfaces’ in the ‘Writing R
Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: NOTE: 3, OK: 9
Version: 0.0.16
Check: installed package size
Result: NOTE
installed size is 6.1Mb
sub-directories of 1Mb or more:
libs 5.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: OK: 9
Current CRAN status: NOTE: 7, OK: 5
Version: 0.9.900.2.0
Check: installed package size
Result: NOTE
installed size is 9.1Mb
sub-directories of 1Mb or more:
include 6.1Mb
libs 1.9Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Current CRAN status: NOTE: 4, OK: 8
Version: 0.2.3
Check: installed package size
Result: NOTE
installed size is 9.8Mb
sub-directories of 1Mb or more:
libs 9.6Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 0.2.3
Check: compiled code
Result: NOTE
File ‘RcppBDT/libs/RcppBDT.so’:
Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
It is good practice to register native routines and to disable symbol
search.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: OK: 12
Current CRAN status: WARN: 2, NOTE: 1, OK: 9
Version: 0.9.12
Check: installed package size
Result: NOTE
installed size is 7.0Mb
sub-directories of 1Mb or more:
lib 5.0Mb
libs 1.6Mb
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.9.12
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
WARNING: shared objects/dynamic libraries with hard-coded temporary installation paths
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: NOTE: 1, OK: 11
Version: 0.1.2
Check: Rd cross-references
Result: NOTE
Undeclared package ‘RcppExamples’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: WARN: 1, NOTE: 2, OK: 9
Version: 0.2.10
Check: top-level files
Result: NOTE
‘cleanup’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.2.10
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
...
--- re-building ‘RcppCNPy-intro.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Quitting from lines 95-104 (RcppCNPy-intro.Rmd)
Error: processing vignette 'RcppCNPy-intro.Rmd' failed with diagnostics:
ImportError: No module named 'numpy'
Detailed traceback:
File "<string>", line 1, in <module>
--- failed re-building ‘RcppCNPy-intro.Rmd’
--- re-building ‘UsingReticulate.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Quitting from lines 84-94 (UsingReticulate.Rmd)
Error: processing vignette 'UsingReticulate.Rmd' failed with diagnostics:
ImportError: No module named 'numpy'
--- failed re-building ‘UsingReticulate.Rmd’
SUMMARY: processing the following files failed:
‘RcppCNPy-intro.Rmd’ ‘UsingReticulate.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-patched-solaris-x86
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: NOTE: 7, OK: 5
Version: 0.3.3.7.0
Check: installed package size
Result: NOTE
installed size is 32.7Mb
sub-directories of 1Mb or more:
include 7.9Mb
libs 24.1Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Current CRAN status: OK: 12
Current CRAN status: NOTE: 2, OK: 7
Version: 0.0.3
Check: top-level files
Result: NOTE
‘configure’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: OK: 12
Current CRAN status: NOTE: 7, OK: 5
Version: 0.2.3
Check: installed package size
Result: NOTE
installed size is 10.4Mb
sub-directories of 1Mb or more:
include 7.0Mb
libs 2.9Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: OK: 11
Current CRAN status: ERROR: 2, NOTE: 4, OK: 5
Version: 0.1.0
Check: installed package size
Result: NOTE
installed size is 11.7Mb
sub-directories of 1Mb or more:
jsonexamples 3.8Mb
libs 6.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64
Version: 0.1.0
Check: examples
Result: ERROR
Running examples in ‘RcppSimdJson-Ex.R’ failed
The error most likely occurred in:
> ### Name: fparse
> ### Title: Fast, Friendly, and Flexible JSON Parsing
> ### Aliases: fparse fload
>
> ### ** Examples
>
> # simple parsing ============================================================
> json_string <- '{"a":[[1,null,3.0],["a","b",true],[10000000000,2,3]]}'
> fparse(json_string)
*** caught illegal operation ***
address 0x107c22aef, cause 'illegal opcode'
Traceback:
1: .deserialize_json(json = json, json_pointer = query, empty_array = empty_array, empty_object = empty_object, single_null = single_null, error_ok = error_ok, on_error = on_error, simplify_to = max_simplify_lvl, type_policy = type_policy, int64_r_type = int64_policy)
2: fparse(json_string)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-x86_64
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘tinytest.R’ [1s/1s]
Running the tests in ‘tests/tinytest.R’ failed.
Last 13 lines of output:
Running test_deserialization.R........ 0 tests
*** caught illegal operation ***
address 0x106e91aef, cause 'illegal opcode'
Traceback:
1: RcppSimdJson:::.deserialize_json(test)
2: fun(...)
3: expect_identical(RcppSimdJson:::.deserialize_json(test), target)
4: eval(expr, envir = e)
5: eval(expr, envir = e)
6: FUN(X[[i]], ...)
7: lapply(basename(testfiles), run_test_file, at_home = at_home, verbose = verbose, color = color, remove_side_effects = remove_side_effects, ...)
8: run_test_dir(testdir, at_home = at_home, cluster = cluster, ...)
9: tinytest::test_package("RcppSimdJson")
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-oldrel-macos-x86_64
Version: 0.1.0
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavor: r-oldrel-windows-ix86+x86_64
Current CRAN status: NOTE: 12
Version: 0.2.1
Check: line endings in C/C++/Fortran sources/headers
Result: NOTE
Found the following sources/headers not terminated with a newline:
inst/include/pflineart.h
Some compilers warn on such files.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.1
Check: installed package size
Result: NOTE
installed size is 7.3Mb
sub-directories of 1Mb or more:
libs 7.0Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: NOTE: 3, OK: 9
Version: 0.1.3
Check: installed package size
Result: NOTE
installed size is 5.7Mb
sub-directories of 1Mb or more:
libs 4.8Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: NOTE: 2, OK: 10
Version: 0.1.6
Check: top-level files
Result: NOTE
‘cleanup’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: NOTE: 12
Version: 0.0.4
Check: dependencies in R code
Result: NOTE
Package in Depends field not imported from: 'methods'
These packages need to be imported from (in the NAMESPACE file)
for when this namespace is loaded but not attached.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.0.4
Check: compiled code
Result: NOTE
File ‘RcppXts/libs/RcppXts.so’:
Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
It is good practice to register native routines and to disable symbol
search.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: NOTE: 2, OK: 10
Version: 0.1.5
Check: top-level files
Result: NOTE
‘cleanup’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: ERROR: 1, WARN: 7, OK: 3
Version: 0.2.1
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
bits.c:1247:23: warning: array subscript 8 is outside array bounds of ‘unsigned int[1]’ [-Warray-bounds]
bits.c:1265:18: warning: array subscript 9 is outside array bounds of ‘unsigned int[1]’ [-Warray-bounds]
Flavors: r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.2.1
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
skein_block64.c:226:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.1
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavor: r-release-macos-x86_64
Current CRAN status: OK: 12
Current CRAN status: WARN: 4, NOTE: 8
Version: 0.2.16
Check: compiled code
Result: NOTE
File 'RInside/libs/RInside.so':
Found 'srand', possibly from 'srand' (C)
Object: 'RInside.o'
File 'RInside/libs/RInside.so':
Found non-API calls to R: 'R_CStackLimit', 'R_CleanTempDir',
'R_DefParams', 'R_ReplDLLdo1', 'R_ReplDLLinit',
'R_RunExitFinalizers', 'R_SetParams', 'R_SignalHandlers',
'R_TempDir', 'Rf_endEmbeddedR', 'Rf_initEmbeddedR'
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.
Compiled code should not call non-API entry points in R.
See 'Writing portable packages' in the 'Writing R Extensions' manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64
Version: 0.2.16
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
RInside.cpp:169:12: warning: 'char* strncpy(char*, const char*, size_t)' specified bound 260 equals destination size [-Wstringop-truncation]
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64
Version: 0.2.16
Check: installed package size
Result: NOTE
installed size is 15.2Mb
sub-directories of 1Mb or more:
lib 6.6Mb
libs 8.1Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.16
Check: compiled code
Result: NOTE
File 'RInside/libs/i386/RInside.dll':
Found 'srand', possibly from 'srand' (C)
Object: 'RInside.o'
File 'RInside/libs/x64/RInside.dll':
Found 'srand', possibly from 'srand' (C)
Object: 'RInside.o'
File 'RInside/libs/i386/libRInside.dll':
Found 'srand', possibly from 'srand' (C)
Object: 'RInside.o'
File 'RInside/libs/x64/libRInside.dll':
Found 'srand', possibly from 'srand' (C)
Object: 'RInside.o'
File 'RInside/libs/i386/RInside.dll':
Found non-API calls to R: 'R_CleanTempDir', 'R_DefParams',
'R_ReplDLLdo1', 'R_ReplDLLinit', 'R_RunExitFinalizers',
'R_SetParams', 'R_TempDir', 'Rf_endEmbeddedR', 'Rf_initEmbeddedR',
'getRUser', 'get_R_HOME'
File 'RInside/libs/x64/RInside.dll':
Found non-API calls to R: 'R_CleanTempDir', 'R_DefParams',
'R_ReplDLLdo1', 'R_ReplDLLinit', 'R_RunExitFinalizers',
'R_SetParams', 'R_TempDir', 'Rf_endEmbeddedR', 'Rf_initEmbeddedR',
'getRUser', 'get_R_HOME'
File 'RInside/libs/i386/libRInside.dll':
Found non-API calls to R: 'R_CleanTempDir', 'R_DefParams',
'R_ReplDLLdo1', 'R_ReplDLLinit', 'R_RunExitFinalizers',
'R_SetParams', 'R_TempDir', 'Rf_endEmbeddedR', 'Rf_initEmbeddedR',
'getRUser', 'get_R_HOME'
File 'RInside/libs/x64/libRInside.dll':
Found non-API calls to R: 'R_CleanTempDir', 'R_DefParams',
'R_ReplDLLdo1', 'R_ReplDLLinit', 'R_RunExitFinalizers',
'R_SetParams', 'R_TempDir', 'Rf_endEmbeddedR', 'Rf_initEmbeddedR',
'getRUser', 'get_R_HOME'
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.
Compiled code should not call non-API entry points in R.
See 'Writing portable packages' in the 'Writing R Extensions' manual.
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.16
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
WARNING: shared objects/dynamic libraries with hard-coded temporary installation paths
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 0.2.16
Check: compiled code
Result: NOTE
File ‘RInside/libs/RInside.so’:
Found ‘_srand’, possibly from ‘srand’ (C)
Object: ‘RInside.o’
File ‘RInside/libs/RInside.so’:
Found non-API calls to R: ‘R_CStackLimit’, ‘R_CleanTempDir’,
‘R_DefParams’, ‘R_ReplDLLdo1’, ‘R_ReplDLLinit’,
‘R_RunExitFinalizers’, ‘R_SetParams’, ‘R_SignalHandlers’,
‘R_TempDir’, ‘Rf_endEmbeddedR’, ‘Rf_initEmbeddedR’
Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor use Fortran I/O
nor system RNGs.
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-release-macos-x86_64, r-oldrel-macos-x86_64
Current CRAN status: NOTE: 1, OK: 11
Version: 0.0.3
Check: Rd cross-references
Result: NOTE
Undeclared package ‘fortunes’ in Rd xrefs
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: NOTE: 6, OK: 5
Version: 0.4.17
Check: installed package size
Result: NOTE
installed size is 13.1Mb
sub-directories of 1Mb or more:
libs 11.2Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Current CRAN status: OK: 12
Current CRAN status: ERROR: 1, NOTE: 4, OK: 4
Version: 0.4.12
Check: installed package size
Result: NOTE
installed size is 27.4Mb
sub-directories of 1Mb or more:
libs 26.8Mb
Flavors: r-devel-windows-ix86+x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.4.12
Check: examples
Result: ERROR
Running examples in ‘RQuantLib-Ex.R’ failed
The error most likely occurred in:
> ### Name: AffineSwaption
> ### Title: Affine swaption valuation using several short-rate models
> ### Aliases: AffineSwaption AffineSwaption.default
> ### summary.G2AnalyticAffineSwaption summary.HWAnalyticAffineSwaption
> ### summary.HWTreeAffineSwaption summary.BKTreeAffineSwaption
> ### Keywords: models
>
> ### ** Examples
>
> if (.Platform$OS.type != "windows" && .Platform$r_arch != "i386") {
+
+ # This data was generated to match the original quantlib example for Bermudan Swaption
+ params <- list(tradeDate=as.Date('2016-2-15'),
+ settleDate=as.Date('2016-2-17'),
+ startDate=as.Date('2017-2-17'),
+ maturity=as.Date('2022-2-17'),
+ payFixed=TRUE,
+ european=FALSE,
+ dt=.25,
+ strike=.06,
+ method="G2Analytic",
+ interpWhat="discount",
+ interpHow="loglinear")
+
+ # Market data used to construct the term structure of interest rates
+ tsQuotes <- list(d1w =0.0382,
+ d1m =0.0372,
+ fut1=96.2875,
+ fut2=96.7875,
+ fut3=96.9875,
+ fut4=96.6875,
+ fut5=96.4875,
+ fut6=96.3875,
+ fut7=96.2875,
+ fut8=96.0875,
+ s3y =0.0398,
+ s5y =0.0443,
+ s10y =0.05165,
+ s15y =0.055175)
+
+
+ # Swaption volatility matrix with corresponding maturities and tenors
+ swaptionMaturities <- c(1,2,3,4,5)
+
+ swapTenors <- c(1,2,3,4,5)
+
+ volMatrix <- matrix(
+ c(0.1490, 0.1340, 0.1228, 0.1189, 0.1148,
+ 0.1290, 0.1201, 0.1146, 0.1108, 0.1040,
+ 0.1149, 0.1112, 0.1070, 0.1010, 0.0957,
+ 0.1047, 0.1021, 0.0980, 0.0951, 0.1270,
+ 0.1000, 0.0950, 0.0900, 0.1230, 0.1160),
+ ncol=5, byrow=TRUE)
+
+ legparams=list(dayCounter="Thirty360",
+ fixFreq="Annual",
+ floatFreq="Semiannual")
+
+ setEvaluationDate(as.Date("2016-2-16"))
+ times<-times <- seq(0,14.75,.25)
+ dcurve <- DiscountCurve(params, tsQuotes, times=times,legparams)
+
+ # Price the Bermudan swaption
+ pricing <- AffineSwaption(params, dcurve,swaptionMaturities, swapTenors, volMatrix,legparams)
+ summary(pricing)
+
+ }
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: affineWithRebuiltCurveEngine(params, matchlegs, c(ts$table$date), ts$table$zeroRates, expiry, tenor, vol)
2: AffineSwaption.default(params, dcurve, swaptionMaturities, swapTenors, volMatrix, legparams)
3: AffineSwaption(params, dcurve, swaptionMaturities, swapTenors, volMatrix, legparams)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-x86_64
Version: 0.4.12
Check: tests
Result: ERROR
Running ‘RQuantlib.R’ [1s/1s]
Running the tests in ‘tests/RQuantlib.R’ failed.
Last 13 lines of output:
+ settleDate=as.Date('2002-2-15'),
+ dt=0.25,
+ interpWhat='discount', interpHow='loglinear')
> discountCurve <- DiscountCurve(discountCurve.param, list(flat=0.05))
>
> ZeroCouponBond(bond, discountCurve, dateparams)
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: ZeroBondWithRebuiltCurve(bond, c(discountCurve$table$date), discountCurve$table$zeroRates, dateparams)
2: ZeroCouponBond.default(bond, discountCurve, dateparams)
3: ZeroCouponBond(bond, discountCurve, dateparams)
An irrecoverable exception occurred. R is aborting now ...
Flavor: r-release-macos-x86_64
Current CRAN status: ERROR: 2, WARN: 1, NOTE: 5
Version: 0.0.14
Check: whether package can be installed
Result: NOTE
Found the following notes/warnings:
Non-staged installation was used
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.0.14
Check: whether package can be installed
Result: ERROR
Installation failed.
Flavors: r-devel-linux-x86_64-fedora-clang, r-oldrel-macos-x86_64
Version: 0.0.14
Check: whether package can be installed
Result: WARN
Found the following significant warnings:
parser.cc:302:11: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
Found the following additional notes/warnings:
Non-staged installation was used
Flavor: r-release-macos-x86_64
Version: 0.0.14
Check: installed package size
Result: NOTE
installed size is 26.7Mb
sub-directories of 1Mb or more:
libs 7.1Mb
test 19.5Mb
Flavor: r-release-macos-x86_64
Current CRAN status: NOTE: 2, OK: 10
Version: 0.1.0
Check: compiled code
Result: NOTE
File ‘sanitizers/libs/sanitizers.so’:
Found no calls to: ‘R_registerRoutines’, ‘R_useDynamicSymbols’
It is good practice to register native routines and to disable symbol
search.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Current CRAN status: OK: 12
Current CRAN status: OK: 12
Current CRAN status: NOTE: 12
Version: 1.1.39-2
Check: whether package can be installed
Result: NOTE
Found the following notes/warnings:
Non-staged installation was used
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-linux-x86_64, r-patched-solaris-x86, r-release-linux-x86_64, r-release-macos-x86_64, r-release-windows-ix86+x86_64, r-oldrel-macos-x86_64, r-oldrel-windows-ix86+x86_64
Version: 1.1.39-2
Check: installed package size
Result: NOTE
installed size is 5.6Mb
sub-directories of 1Mb or more:
bin 5.4Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-release-macos-x86_64, r-oldrel-macos-x86_64
Version: 1.1.39-2
Check: top-level files
Result: NOTE
‘configure’: /bin/bash is not portable
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc