- using R Under development (unstable) (2025-03-19 r88007)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 19.1.7 (1+b1)
Debian flang-new version 19.1.7 (1+b1)
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘datetimeoffset/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘datetimeoffset’ version ‘0.4.1’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘datetimeoffset’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ 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 ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [2s/3s] 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 ... [16s/20s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/6s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [17s/24s] ERROR
Running ‘testthat.R’ [17s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(datetimeoffset)
>
> test_check("datetimeoffset")
[ FAIL 22 | WARN 0 | SKIP 2 | PASS 575 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• On CRAN (2): 'test-format.r:127:5', 'test-leap-seconds.r:12:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-as_datetimeoffset.r:297:5'): base R classes ──────────────────
format(as_datetimeoffset(dt)) (`actual`) not equal to "2020-11-01T01:30:00.123456-04:00[America/New_York]" (`expected`).
`actual`: "2020-10-31T21:30:00.123456-04:00[America/New_York]"
`expected`: "2020-11-01T01:30:00.123456-04:00[America/New_York]"
── Failure ('test-as_datetimeoffset.r:300:5'): base R classes ──────────────────
format(as_datetimeoffset(dt)) (`actual`) not equal to "2020-11-01T01:30:00.123456-05:00[America/New_York]" (`expected`).
`actual`: "2020-10-31T21:30:00.123456-04:00[America/New_York]"
`expected`: "2020-11-01T01:30:00.123456-05:00[America/New_York]"
── Failure ('test-as_datetimeoffset.r:359:5'): {clock} classes ─────────────────
format(as_sys_time(dto, ambiguous = "NA")) (`actual`) not equal to c(NA_character_, "2020-11-01T06:30:00", "2020-11-01T05:30:00") (`expected`).
`actual`: NA "2020-11-01T01:30:00" "2020-11-01T01:30:00"
`expected`: NA "2020-11-01T06:30:00" "2020-11-01T05:30:00"
── Failure ('test-as_datetimeoffset.r:361:5'): {clock} classes ─────────────────
format(as_sys_time(dto, ambiguous = "earliest")) (`actual`) not equal to c("2020-11-01T05:30:00", "2020-11-01T06:30:00", "2020-11-01T05:30:00") (`expected`).
`actual`: "2020-11-01T05:30:00" "2020-11-01T01:30:00" "2020-11-01T01:30:00"
`expected`: "2020-11-01T05:30:00" "2020-11-01T06:30:00" "2020-11-01T05:30:00"
── Failure ('test-as_datetimeoffset.r:363:5'): {clock} classes ─────────────────
format(as_sys_time(dto, ambiguous = "latest")) (`actual`) not equal to c("2020-11-01T06:30:00", "2020-11-01T06:30:00", "2020-11-01T05:30:00") (`expected`).
`actual`: "2020-11-01T06:30:00" "2020-11-01T01:30:00" "2020-11-01T01:30:00"
`expected`: "2020-11-01T06:30:00" "2020-11-01T06:30:00" "2020-11-01T05:30:00"
── Failure ('test-as_datetimeoffset.r:367:5'): {clock} classes ─────────────────
format(as_zoned_time(dto, "UTC", ambiguous = "NA")) (`actual`) not equal to c(NA_character_, "2020-11-01T06:30:00+00:00[UTC]", "2020-11-01T05:30:00+00:00[UTC]") (`expected`).
`actual`: NA "2020-11-01T01:30:00+00:00[UTC]" "2020-11-01T01:30:00+00:00[UTC]"
`expected`: NA "2020-11-01T06:30:00+00:00[UTC]" "2020-11-01T05:30:00+00:00[UTC]"
── Failure ('test-as_datetimeoffset.r:371:5'): {clock} classes ─────────────────
format(as_zoned_time(dto, "UTC", ambiguous = "earliest")) (`actual`) not equal to c(...) (`expected`).
actual | expected
[1] "2020-11-01T05:30:00+00:00[UTC]" | "2020-11-01T05:30:00+00:00[UTC]" [1]
[2] "2020-11-01T01:30:00+00:00[UTC]" - "2020-11-01T06:30:00+00:00[UTC]" [2]
[3] "2020-11-01T01:30:00+00:00[UTC]" - "2020-11-01T05:30:00+00:00[UTC]" [3]
── Failure ('test-as_datetimeoffset.r:375:5'): {clock} classes ─────────────────
format(as_zoned_time(dto, "UTC", ambiguous = "latest")) (`actual`) not equal to c(...) (`expected`).
actual | expected
[1] "2020-11-01T06:30:00+00:00[UTC]" | "2020-11-01T06:30:00+00:00[UTC]" [1]
[2] "2020-11-01T01:30:00+00:00[UTC]" - "2020-11-01T06:30:00+00:00[UTC]" [2]
[3] "2020-11-01T01:30:00+00:00[UTC]" - "2020-11-01T05:30:00+00:00[UTC]" [3]
── Failure ('test-from-datetimeoffset.r:83:5'): as.POSIXct() ───────────────────
format(as.POSIXct(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00" (`expected`).
`actual`: "2020-10-31 21:30:00"
`expected`: "2020-11-01 01:30:00"
── Failure ('test-from-datetimeoffset.r:86:5'): as.POSIXct() ───────────────────
format(as.POSIXct(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00" (`expected`).
`actual`: "2020-10-31 21:30:00"
`expected`: "2020-11-01 01:30:00"
── Failure ('test-from-datetimeoffset.r:93:5'): as.POSIXct() ───────────────────
format(as.POSIXct(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00.123456" (`expected`).
`actual`: "2020-10-31 21:30:00.123456"
`expected`: "2020-11-01 01:30:00.123456"
── Failure ('test-from-datetimeoffset.r:112:5'): as.POSIXlt() ──────────────────
format(as.POSIXlt(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00" (`expected`).
`actual`: "2020-10-31 21:30:00"
`expected`: "2020-11-01 01:30:00"
── Failure ('test-from-datetimeoffset.r:114:5'): as.POSIXlt() ──────────────────
format(as.POSIXlt(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00" (`expected`).
`actual`: "2020-10-31 21:30:00"
`expected`: "2020-11-01 01:30:00"
── Failure ('test-from-datetimeoffset.r:121:5'): as.POSIXlt() ──────────────────
format(as.POSIXlt(dt), tz = "America/New_York", digits = 6L) (`actual`) not equal to "2020-11-01 01:30:00.123456" (`expected`).
`actual`: "2020-10-31 21:30:00.123456"
`expected`: "2020-11-01 01:30:00.123456"
── Failure ('test-from-datetimeoffset.r:220:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[5])) (`actual`) not equal to "2000-01-02T05:04" (`expected`).
`actual`: "2000-01-02T03:04"
`expected`: "2000-01-02T05:04"
── Failure ('test-from-datetimeoffset.r:221:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[6])) (`actual`) not equal to "2000-01-02T05:04" (`expected`).
`actual`: "2000-01-02T03:04"
`expected`: "2000-01-02T05:04"
── Failure ('test-from-datetimeoffset.r:223:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[8])) (`actual`) not equal to "2000-01-02T05:04:05" (`expected`).
`actual`: "2000-01-02T03:04:05"
`expected`: "2000-01-02T05:04:05"
── Failure ('test-from-datetimeoffset.r:224:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[9])) (`actual`) not equal to "2000-01-02T05:04:05" (`expected`).
`actual`: "2000-01-02T03:04:05"
`expected`: "2000-01-02T05:04:05"
── Failure ('test-from-datetimeoffset.r:226:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[11])) (`actual`) not equal to "2000-01-02T05:04:05.006" (`expected`).
`actual`: "2000-01-02T03:04:05.006"
`expected`: "2000-01-02T05:04:05.006"
── Failure ('test-from-datetimeoffset.r:227:5'): clock classes ─────────────────
format(clock::as_sys_time(dts[12])) (`actual`) not equal to "2000-01-02T05:04:05.006" (`expected`).
`actual`: "2000-01-02T03:04:05.006"
`expected`: "2000-01-02T05:04:05.006"
── Failure ('test-from-datetimeoffset.r:247:5'): clock classes ─────────────────
format(st) (`actual`) not equal to c(NA_character_, "2000-01-02T11:04:05.123400", "2000-01-02T05:04:05.123400") (`expected`).
`actual`: NA "2000-01-02T11:04:05.123400" "2000-01-02T03:04:05.123400"
`expected`: NA "2000-01-02T11:04:05.123400" "2000-01-02T05:04:05.123400"
── Failure ('test-invalid.r:34:5'): detect_invalid() ───────────────────────────
clock::invalid_detect(dt) is not FALSE
`actual`: TRUE
`expected`: FALSE
[ FAIL 22 | WARN 0 | SKIP 2 | PASS 575 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/2s] OK
- checking PDF version of manual ... [5s/8s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR