Last updated on 2020-08-07 01:49:53 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.2.4 | 5.84 | 43.32 | 49.16 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.2.4 | 3.42 | 32.90 | 36.32 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.2.4 | 68.71 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.2.4 | 58.70 | ERROR | |||
r-devel-windows-ix86+x86_64 | 0.2.4 | 15.00 | 75.00 | 90.00 | ERROR | |
r-patched-linux-x86_64 | 0.2.4 | 4.85 | 42.61 | 47.46 | ERROR | |
r-patched-solaris-x86 | 0.2.4 | 84.70 | ERROR | |||
r-release-linux-x86_64 | 0.2.4 | 5.07 | 42.62 | 47.69 | ERROR | |
r-release-macos-x86_64 | 0.2.4 | OK | ||||
r-release-windows-ix86+x86_64 | 0.2.4 | 16.00 | 52.00 | 68.00 | ERROR | |
r-oldrel-macos-x86_64 | 0.2.4 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 0.2.4 | 7.00 | 58.00 | 65.00 | ERROR |
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