- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘fy/DESCRIPTION’ ... OK
- this is package ‘fy’ version ‘0.4.2’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- 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 ‘fy’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/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 ... [5s/8s] OK
- checking Rd files ... [0s/0s] 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 R/sysdata.rda ... OK
- checking examples ... [1s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [4s/5s] ERROR
Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(fy)
> library(data.table)
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
> setDTthreads(1)
>
> test_check("fy")
Saving _problems/test-grattan-FY-72.R
Saving _problems/test-is_fy-6.R
Saving _problems/test-yr2fy-44.R
Saving _problems/test_validate_fys-13.R
Saving _problems/test_validate_fys-17.R
Saving _problems/test_validate_fys-22.R
Saving _problems/test_validate_fys-26.R
Saving _problems/test_validate_fys-51.R
[ FAIL 8 | WARN 0 | SKIP 3 | PASS 122 ]
══ Skipped tests (3) ═══════════════════════════════════════════════════════════
• On CRAN (3): 'test-grattan-FY.R:59:3', 'test-range_fy2yr.R:13:3',
'test_validate_fys.R:57:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-grattan-FY.R:72:3'): yr2fy and .yr2fy ──────────────────────────
Error in ``[.data.table`(DT, , `:=`("res", .FUN(.BY[[1L]], ...)), by = "x")`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_identical(fy.year(x), .yr2fy(x)) at test-grattan-FY.R:72:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─fy (local) fy.year(x)
5. └─fy:::accel_repetitive_input(yr_ending, .yr2fy)
6. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
7. └─data.table:::`[.data.table`(...)
── Error ('test-is_fy.R:6:3'): is_fy works ─────────────────────────────────────
Error in ``[.data.table`(DT, , `:=`("res", .FUN(.BY[[1L]], ...)), by = "x")`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test-is_fy.R:6:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─fy::is_fy(c("2014-15", "2015-16", "2015-15"))
5. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
6. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
7. └─data.table:::`[.data.table`(...)
── Error ('test-yr2fy.R:39:3'): accelerator ────────────────────────────────────
Error in ``[.data.table`(DT, , `:=`("res", .FUN(.BY[[1L]], ...)), by = "x")`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─fy:::expect_equal(...) at test-yr2fy.R:39:3
2. │ └─base::inherits(object, "fy") at ./helper.R:6:3
3. └─fy:::accel_repetitive_input(...)
4. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
5. └─data.table:::`[.data.table`(...)
── Failure ('test_validate_fys.R:11:3'): Error handling ────────────────────────
`validate_fys_permitted(...)` threw an error with unexpected message.
Expected match: "contained invalid FYs."
Actual message: "attempt access index 1/1 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_validate_fys.R:11:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─fy::validate_fys_permitted(...)
7. └─fy::is_fy(fy.year)
8. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
9. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
10. └─data.table:::`[.data.table`(...)
── Failure ('test_validate_fys.R:15:3'): Error handling ────────────────────────
`validate_fys_permitted(zzz, c("2015-16", "2016-17"))` threw an error with unexpected message.
Expected match: "`zzz` contained invalid entry 2015-17 at position 2."
Actual message: "attempt access index 1/1 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_validate_fys.R:15:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─fy::validate_fys_permitted(zzz, c("2015-16", "2016-17"))
7. └─fy::is_fy(fy.year)
8. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
9. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
10. └─data.table:::`[.data.table`(...)
── Failure ('test_validate_fys.R:20:3'): Error handling ────────────────────────
`validate_fys_permitted(zzz, yyy)` threw an error with unexpected message.
Expected match: "`zzz = 2017-18` was not within the allowed range: 2015-16 <= fy.year <= 2016-17"
Actual message: "attempt access index 1/1 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_validate_fys.R:20:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─fy::validate_fys_permitted(zzz, yyy)
7. └─fy::is_fy(fy.year)
8. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
9. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
10. └─data.table:::`[.data.table`(...)
── Failure ('test_validate_fys.R:23:3'): Error handling ────────────────────────
`validate_fys_permitted(...)` threw an error with unexpected message.
Expected match: "were not within the allowed range: 2015-16 <= fy.year <= 2016-17"
Actual message: "attempt access index 1/1 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_validate_fys.R:23:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─fy::validate_fys_permitted(...)
7. └─fy::is_fy(fy.year)
8. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
9. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
10. └─data.table:::`[.data.table`(...)
── Error ('test_validate_fys.R:50:3'): validate permitted years ────────────────
Error in ``[.data.table`(DT, , `:=`("res", .FUN(.BY[[1L]], ...)), by = "x")`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_true(...) at test_validate_fys.R:50:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::inherits(...)
5. └─fy::validate_fys_permitted(v, permitted_fys = yr2fy(1950:2050))
6. └─fy::is_fy(fy.year)
7. └─fy:::accel_repetitive_input(x, is_fy, THRESHOLD = 2L)
8. ├─DT[, `:=`("res", .FUN(.BY[[1L]], ...)), by = "x"]
9. └─data.table:::`[.data.table`(...)
[ FAIL 8 | WARN 0 | SKIP 3 | PASS 122 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR