- using R Under development (unstable) (2024-09-04 r87094 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'dttr2/DESCRIPTION' ... OK
- this is package 'dttr2' version '0.5.0'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'dttr2' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [6s] OK
- checking Rd files ... [2s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking examples ... [4s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [18s] ERROR
Running 'spelling.R' [0s]
Running 'testthat.R' [18s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(dttr2)
>
> test_check("dttr2")
[ FAIL 9 | WARN 0 | SKIP 0 | PASS 1158 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-complete.R:85:3'): complete.POSIXct ──────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(c("2001-01-01", "2001-01-02", "2001-01-03"), tz = "Etc/GMT+7") (`expected`).
`actual`: "1969-12-31 20:08:44" "2001-01-01 00:00:00" "2001-01-03 00:00:00"
`expected`: "2001-01-01" "2001-01-02" "2001-01-03"
── Failure ('test-complete.R:92:3'): complete.POSIXct ──────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(c("2001-01-03", "2001-01-01", "2001-01-02"), tz = "Etc/GMT+7") (`expected`).
`actual`: "2001-01-03 00:00:00" "2001-01-01 00:00:00" "1969-12-31 20:08:44"
`expected`: "2001-01-03" "2001-01-01" "2001-01-02"
── Failure ('test-complete.R:100:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(c("2001-01-03", "2001-01-01", "2001-01-02"), tz = "Etc/GMT+7") (`expected`).
`actual`: "2001-01-03 00:00:00" "2001-01-01 00:00:00" "1969-12-31 20:08:44"
`expected`: "2001-01-03" "2001-01-01" "2001-01-02"
── Failure ('test-complete.R:108:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(...) (`expected`).
actual | expected
[1] "2001-01-03 00:00:00" - "2001-01-03" [1]
[2] "2001-01-01 00:00:00" - "2001-01-01" [2]
[3] "2001-01-03 00:00:00" - "2001-01-03" [3]
[4] "1969-12-31 20:08:44" - "2001-01-02" [4]
── Failure ('test-complete.R:120:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(...) (`expected`).
actual | expected
[1] "1969-12-31 20:08:44" - "2001-01-01" [1]
[2] "2001-01-01 00:00:00" - "2001-01-02" [2]
[3] "2001-01-03 00:00:00" - "2001-01-03" [3]
[4] "2001-01-03 00:00:00" - "2001-01-03" [4]
── Failure ('test-complete.R:147:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(...) (`expected`).
`actual`: "1969-12-31 20:08:43" "2001-01-01 00:00:00" "2001-01-01 00:00:02"
`expected`: "2001-01-01 00:00:00" "2001-01-01 00:00:01" "2001-01-01 00:00:02"
── Failure ('test-complete.R:160:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(...) (`expected`).
`actual`: "2001-01-01 00:00:04" "2001-01-01 00:00:02" "1969-12-31 20:08:43"
`expected`: "2001-01-01 00:00:04" "2001-01-01 00:00:02" "2001-01-01 00:00:03"
── Failure ('test-complete.R:173:3'): complete.POSIXct ─────────────────────────
dtt_complete(...) (`actual`) not identical to as.POSIXct(...) (`expected`).
`actual`: "1969-12-31 20:08:43" "2001-01-01 00:00:02" "2001-01-01 00:00:04"
`expected`: "2001-01-01 00:00:02" "2001-01-01 00:00:03" "2001-01-01 00:00:04"
── Error ('test-complete.R:191:3'): complete.hms ───────────────────────────────
Error in `as.Date.default(setdiff(seq, x), origin = "1970-01-01")`: do not know how to convert 'setdiff(seq, x)' to class "Date"
Backtrace:
▆
1. ├─testthat::expect_identical(...) at test-complete.R:191:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─dttr2::dtt_complete(hms::as_hms(c("00:00:00", "00:00:00")))
5. └─dttr2:::dtt_complete.hms(hms::as_hms(c("00:00:00", "00:00:00")))
6. ├─base::as.Date(setdiff(seq, x), origin = "1970-01-01")
7. └─base::as.Date.default(setdiff(seq, x), origin = "1970-01-01")
[ FAIL 9 | WARN 0 | SKIP 0 | PASS 1158 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [25s] OK
- checking HTML version of manual ... [13s] OK
- DONE
Status: 1 ERROR