CRAN Package Check Results for Maintainer ‘Hugh Parsonage <hugh.parsonage at gmail.com>’

Last updated on 2025-12-21 17:51:09 CET.

Package ERROR WARN NOTE OK
ASGS.foyer 13
Census2016 1 2 10
dauphin 13
factor256 13
fy 4 9
grattan 4 9
grattanInflators 13
healthyAddress 13
heims 13
hutils 4 9
hutilscpp 4 9
TeXCheckR 4 9

Package ASGS.foyer

Current CRAN status: OK: 13

Package Census2016

Current CRAN status: WARN: 1, NOTE: 2, OK: 10

Version: 0.2.0
Check: dependencies in R code
Result: NOTE Namespace in Imports field not imported from: ‘data.table’ All declared Imports should be used. Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.0
Check: for unstated dependencies in ‘tests’
Result: WARN Warning: unable to access index for repository https://bioconductor.statistik.tu-dortmund.de/cran/src/contrib: cannot open URL 'https://bioconductor.statistik.tu-dortmund.de/cran/src/contrib/PACKAGES' Warning: unable to access index for repository https://bioconductor.statistik.tu-dortmund.de/packages/3.22/bioc/src/contrib: cannot open URL 'https://bioconductor.statistik.tu-dortmund.de/packages/3.22/bioc/src/contrib/PACKAGES' Warning: unable to access index for repository https://bioconductor.statistik.tu-dortmund.de/packages/3.22/data/annotation/src/contrib: cannot open URL 'https://bioconductor.statistik.tu-dortmund.de/packages/3.22/data/annotation/src/contrib/PACKAGES' Warning: unable to access index for repository https://bioconductor.statistik.tu-dortmund.de/packages/3.22/data/experiment/src/contrib: cannot open URL 'https://bioconductor.statistik.tu-dortmund.de/packages/3.22/data/experiment/src/contrib/PACKAGES' '::' or ':::' import not declared from: 'visualTest' Flavor: r-devel-windows-x86_64

Package dauphin

Current CRAN status: OK: 13

Package factor256

Current CRAN status: OK: 13

Package fy

Current CRAN status: ERROR: 4, OK: 9

Version: 0.4.2
Check: tests
Result: 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 Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.4.2
Check: tests
Result: ERROR Running ‘testthat.R’ [2s/3s] 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.4.2
Check: tests
Result: ERROR Running ‘testthat.R’ 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.4.2
Check: tests
Result: ERROR Running ‘testthat.R’ [5s/13s] 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 Flavor: r-devel-linux-x86_64-fedora-gcc

Package grattan

Current CRAN status: ERROR: 4, OK: 9

Additional issues

M1mac

Version: 2025.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/28s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > > all.pkgs <- c("testthat", "data.table", "magrittr", "withr") > > > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) { + + library(testthat) + library(grattan) + library(hutils) + library(data.table) + library(magrittr) + setDTthreads(1L) + if (identical(Sys.getenv("CIRCLECI"), "true")) { + test_check("grattan", + reporter = JunitReporter$new(file = "junit_result.xml")) + } else { + test_check("grattan", reporter = LocationReporter) + } + } Attaching package: 'hutils' The following object is masked from 'package:base': %notin% Attaching package: 'data.table' The following object is masked from 'package:hutils': %notin% The following object is masked from 'package:base': %notin% Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Start test: decode_age_range works 'test-decode_age_range.R:2:3' [success] End test: decode_age_range works Start test: income_tax2 works 'test-income_tax2.R:2:3' [success] 'test-income_tax2.R:3:3' [success] 'test-income_tax2.R:5:3' [success] End test: income_tax2 works Start test: dots ATO 'test-income_tax2.R:10:3' [skip] End test: dots ATO Start test: marginal_rate works 'test-marginal_rate.R:2:3' [skip] End test: marginal_rate works Start test: Data is up-to-date as documented 'test_0sysdata.R:5:3' [skip] End test: Data is up-to-date as documented Start test: pkgdown up-to-date 'test_0sysdata.R:42:3' [skip] End test: pkgdown up-to-date Start test: CG population inflator 'test_CG_inflators.R:4:3' [success] 'test_CG_inflators.R:5:3' [success] 'test_CG_inflators.R:6:3' [success] End test: CG population inflator Start test: LITO 'test_LITO.R:4:3' [success] 'test_LITO.R:5:3' [success] 'test_LITO.R:6:3' [success] End test: LITO Start test: LMITO 'test_LITO.R:11:3' [success] 'test_LITO.R:14:3' [success] End test: LMITO Start test: Offset basics 'test_Offset.R:6:3' [success] 'test_Offset.R:7:3' [success] 'test_Offset.R:8:3' [success] 'test_Offset.R:9:3' [success] 'test_Offset.R:12:3' [success] 'test_Offset.R:18:3' [success] 'test_Offset.R:30:3' [success] End test: Offset basics Start test: Offset internals 'test_Offset.R:36:3' [success] 'test_Offset.R:38:3' [success] End test: Offset internals Start test: set_offsets (with yr) 'test_Offset.R:44:3' [success] 'test_Offset.R:45:3' [success] 'test_Offset.R:46:3' [success] End test: set_offsets (with yr) Start test: multi-offsets 'test_Offset.R:57:3' [success] 'test_Offset.R:58:3' [success] End test: multi-offsets Start test: Validation of System 'test_System.R:5:3' [success] 'test_System.R:10:3' [success] 'test_System.R:11:3' [success] 'test_System.R:15:3' [success] 'test_System.R:19:3' [success] 'test_System.R:23:3' [success] 'test_System.R:27:3' [success] 'test_System.R:31:3' [success] End test: Validation of System Start test: Misc functions 'test_System.R:36:3' [success] 'test_System.R:37:3' [success] End test: Misc functions Start test: age_grouper delivers appropriate results 'test_age_grouper.R:4:3' [success] 'test_age_grouper.R:5:3' [success] 'test_age_grouper.R:7:3' [success] 'test_age_grouper.R:10:3' [success] End test: age_grouper delivers appropriate results Start test: Long age_grouper 'test_age_grouper.R:16:3' [success] 'test_age_grouper.R:19:3' [success] End test: Long age_grouper Start test: Alternate usage: years of birth 'test_age_grouper.R:23:3' [success] End test: Alternate usage: years of birth Start test: Long age grouper with NAs 'test_age_grouper.R:33:3' [success] 'test_age_grouper.R:36:3' [success] End test: Long age grouper with NAs Start test: Error handling 'test_age_pension_age.R:4:3' [success] 'test_age_pension_age.R:6:3' [success] 'test_age_pension_age.R:7:3' [success] 'test_age_pension_age.R:10:3' [success] 'test_age_pension_age.R:12:3' [success] End test: Error handling Start test: Women before 1995 'test_age_pension_age.R:23:3' [success] 'test_age_pension_age.R:26:3' [success] 'test_age_pension_age.R:29:3' [success] End test: Women before 1995 Start test: 65 'test_age_pension_age.R:35:3' [success] End test: 65 Start test: Future dates 'test_age_pension_age.R:44:3' [success] 'test_age_pension_age.R:46:3' [success] End test: Future dates Start test: aus pop fy age works 'test_aus_pop_fy_age.R:7:3' [success] 'test_aus_pop_fy_age.R:8:3' [success] 'test_aus_pop_fy_age.R:10:3' [success] 'test_aus_pop_fy_age.R:12:3' [success] End test: aus pop fy age works Start test: Returns correct values 'test_aus_pop_qtr.R:5:3' [success] 'test_aus_pop_qtr.R:6:3' [success] 'test_aus_pop_qtr.R:7:3' [success] 'test_aus_pop_qtr.R:11:3' [success] 'test_aus_pop_qtr.R:33:3' [success] End test: Returns correct values Start test: Multiple unordered 'test_aus_pop_qtr.R:53:3' [success] End test: Multiple unordered Start test: Rolls work as expected 'test_aus_pop_qtr.R:61:3' [success] End test: Rolls work as expected Start test: Error handling 'test_aus_pop_qtr.R:68:3' [success] 'test_aus_pop_qtr.R:69:3' [success] 'test_aus_pop_qtr.R:70:3' [success] 'test_aus_pop_qtr.R:71:3' [success] 'test_aus_pop_qtr.R:73:3' [success] 'test_aus_pop_qtr.R:74:3' [success] 'test_aus_pop_qtr.R:75:3' [success] 'test_aus_pop_qtr.R:76:3' [success] 'test_aus_pop_qtr.R:77:3' [success] 'test_aus_pop_qtr.R:79:3' [success] 'test_aus_pop_qtr.R:82:3' [success] End test: Error handling Start test: Error handling 'test_awote.R:4:3' [success] 'test_awote.R:5:3' [success] 'test_awote.R:6:3' [success] 'test_awote.R:7:3' [success] 'test_awote.R:8:3' [success] End test: Error handling Start test: Message 'test_awote.R:12:3' [success] End test: Message Start test: AWOTE fy 'test_awote.R:18:3' [success] 'test_awote.R:21:3' [success] End test: AWOTE fy Start test: AWOTE unsorted, issue #204 'test_awote.R:28:3' [success] 'test_awote.R:32:3' [success] 'test_awote.R:58:5' [success] 'test_awote.R:59:5' [success] End test: AWOTE unsorted, issue #204 Start test: Error handling 'test_bto.R:4:3' [success] End test: Error handling Start test: BTO returns known results 'test_bto.R:8:3' [success] 'test_bto.R:11:3' [success] 'test_bto.R:15:3' [success] End test: BTO returns known results Start test: check_TF 'test_check_TF.R:4:3' [success] 'test_check_TF.R:5:3' [success] 'test_check_TF.R:7:3' [success] 'test_check_TF.R:10:3' [success] 'test_check_TF.R:13:3' [success] End test: check_TF Start test: check_num1 'test_check_TF.R:18:3' [success] 'test_check_TF.R:19:3' [success] 'test_check_TF.R:22:3' [success] 'test_check_TF.R:26:3' [success] 'test_check_TF.R:30:3' [success] End test: check_num1 Start test: Error handling 'test_compare_avg_tax_rates.R:9:3' [success] 'test_compare_avg_tax_rates.R:16:3' [failure] 'test_compare_avg_tax_rates.R:19:3' [success] 'test_compare_avg_tax_rates.R:23:3' [success] 'test_compare_avg_tax_rates.R:26:3' [success] End test: Error handling Start test: data.frame 'test_compare_avg_tax_rates.R:39:3' [error] End test: data.frame Start test: Expected output 'test_compare_avg_tax_rates.R:49:3' [error] End test: Expected output Start test: ids that's not 'id' 'test_compare_avg_tax_rates.R:74:3' [error] End test: ids that's not 'id' Start test: Error handling 'test_financialfunctions.R:4:3' [success] End test: Error handling Start test: Matches Excel 'test_financialfunctions.R:8:3' [success] 'test_financialfunctions.R:9:3' [success] 'test_financialfunctions.R:10:3' [success] 'test_financialfunctions.R:11:3' [success] 'test_financialfunctions.R:12:3' [success] End test: Matches Excel Start test: Error handling 'test_generic_inflator.R:4:3' [success] End test: Error handling Start test: generic inflator doesn't fail! 'test_generic_inflator.R:12:3' [success] 'test_generic_inflator.R:13:3' [success] End test: generic inflator doesn't fail! Start test: generic inflator gives higher/lower for upper/lower 'test_generic_inflator.R:17:3' [success] 'test_generic_inflator.R:19:3' [success] 'test_generic_inflator.R:24:3' [success] End test: generic inflator gives higher/lower for upper/lower Start test: GNI returns known results 'test_gni.R:4:3' [success] 'test_gni.R:8:3' [success] End test: GNI returns known results Start test: Error handling 'test_gni.R:15:3' [skip] End test: Error handling Start test: GDP returns known results 'test_gni.R:22:3' [success] 'test_gni.R:26:3' [success] End test: GDP returns known results Start test: Error handling 'test_gni.R:34:3' [skip] End test: Error handling Start test: income_tax collections in 2003-04 match final budget outcome by 1% 'test_incomeTaxCollections.R:4:3' [skip] End test: income_tax collections in 2003-04 match final budget outcome by 1% Start test: income_tax collections in 2006-07 match final budget outcome by 1% 'test_incomeTaxCollections.R:18:3' [skip] End test: income_tax collections in 2006-07 match final budget outcome by 1% Start test: Projections match collections 'test_incomeTaxCollections.R:34:3' [skip] End test: Projections match collections Start test: No test 'test_incometax_dotsATO.R:4:3' [success] End test: No test Start test: sfa 'test_incometax_dotsATO_sfa.R:7:3' [success] 'test_incometax_dotsATO_sfa.R:8:3' [skip] End test: sfa Start test: income tax checks 'test_incometax_single.R:5:3' [skip] End test: income tax checks Start test: income_tax returns known results 'test_incometax_single.R:36:3' [success] 'test_incometax_single.R:37:3' [success] 'test_incometax_single.R:38:3' [success] 'test_incometax_single.R:40:3' [success] 'test_incometax_single.R:41:3' [success] 'test_incometax_single.R:42:3' [success] 'test_incometax_single.R:43:3' [success] 'test_incometax_single.R:45:3' [success] 'test_incometax_single.R:46:3' [success] 'test_incometax_single.R:48:3' [success] 'test_incometax_single.R:68:3' [success] 'test_incometax_single.R:76:3' [success] 'test_incometax_single.R:77:3' [success] 'test_incometax_single.R:78:3' [success] 'test_incometax_single.R:79:3' [success] 'test_incometax_single.R:80:3' [success] End test: income_tax returns known results Start test: income_tax is not NA for any years) 'test_incometax_single.R:94:3' [error] End test: income_tax is not NA for any years) Start test: income_tax is not NA for 2003-04 'test_incometax_single.R:98:3' [success] End test: income_tax is not NA for 2003-04 Start test: income_tax always returns the length of its arguments 'test_incometax_single.R:103:3' [error] End test: income_tax always returns the length of its arguments Start test: Budget Speech 2003-04 'test_incometax_single.R:117:3' [success] 'test_incometax_single.R:118:3' [success] 'test_incometax_single.R:119:3' [success] End test: Budget Speech 2003-04 Start test: Previous years (intel compiler trigger) 'test_incometax_single.R:123:3' [success] 'test_incometax_single.R:124:3' [success] 'test_incometax_single.R:125:3' [success] 'test_incometax_single.R:126:3' [success] 'test_incometax_single.R:127:3' [success] 'test_incometax_single.R:128:3' [success] 'test_incometax_single.R:129:3' [success] 'test_incometax_single.R:130:3' [success] 'test_incometax_single.R:131:3' [success] 'test_incometax_single.R:132:3' [success] 'test_incometax_single.R:133:3' [success] 'test_incometax_single.R:134:3' [success] 'test_incometax_single.R:135:3' [success] 'test_incometax_single.R:136:3' [success] 'test_incometax_single.R:137:3' [success] 'test_incometax_single.R:138:3' [success] 'test_incometax_single.R:139:3' [success] 'test_incometax_single.R:140:3' [success] 'test_incometax_single.R:141:3' [success] 'test_incometax_single.R:142:3' [success] 'test_incometax_single.R:143:3' [success] 'test_incometax_single.R:144:3' [success] 'test_incometax_single.R:145:3' [success] 'test_incometax_single.R:146:3' [success] 'test_incometax_single.R:147:3' [success] 'test_incometax_single.R:148:3' [success] 'test_incometax_single.R:149:3' [success] 'test_incometax_single.R:150:3' [success] 'test_incometax_single.R:151:3' [success] 'test_incometax_single.R:152:3' [success] 'test_incometax_single.R:153:3' [success] 'test_incometax_single.R:154:3' [success] 'test_incometax_single.R:155:3' [success] 'test_incometax_single.R:156:3' [success] 'test_incometax_single.R:157:3' [success] 'test_incometax_single.R:158:3' [success] 'test_incometax_single.R:159:3' [success] 'test_incometax_single.R:160:3' [success] 'test_incometax_single.R:161:3' [success] 'test_incometax_single.R:162:3' [success] 'test_incometax_single.R:163:3' [success] 'test_incometax_single.R:164:3' [success] 'test_incometax_single.R:165:3' [success] 'test_incometax_single.R:166:3' [success] 'test_incometax_single.R:167:3' [success] 'test_incometax_single.R:168:3' [success] 'test_incometax_single.R:169:3' [success] 'test_incometax_single.R:170:3' [success] 'test_incometax_single.R:172:3' [success] 'test_incometax_single.R:173:3' [success] 'test_incometax_single.R:174:3' [success] 'test_incometax_single.R:175:3' [success] 'test_incometax_single.R:176:3' [success] 'test_incometax_single.R:177:3' [success] 'test_incometax_single.R:178:3' [success] 'test_incometax_single.R:179:3' [success] 'test_incometax_single.R:180:3' [success] 'test_incometax_single.R:181:3' [success] 'test_incometax_single.R:182:3' [success] 'test_incometax_single.R:183:3' [success] 'test_incometax_single.R:184:3' [success] 'test_incometax_single.R:185:3' [success] 'test_incometax_single.R:186:3' [success] 'test_incometax_single.R:187:3' [success] 'test_incometax_single.R:188:3' [success] 'test_incometax_single.R:189:3' [success] 'test_incometax_single.R:190:3' [success] 'test_incometax_single.R:191:3' [success] 'test_incometax_single.R:192:3' [success] 'test_incometax_single.R:193:3' [success] 'test_incometax_single.R:194:3' [success] 'test_incometax_single.R:195:3' [success] 'test_incometax_single.R:196:3' [success] 'test_incometax_single.R:197:3' [success] 'test_incometax_single.R:198:3' [success] 'test_incometax_single.R:199:3' [success] 'test_incometax_single.R:200:3' [success] 'test_incometax_single.R:201:3' [success] 'test_incometax_single.R:202:3' [success] 'test_incometax_single.R:203:3' [success] 'test_incometax_single.R:204:3' [success] 'test_incometax_single.R:205:3' [success] 'test_incometax_single.R:206:3' [success] 'test_incometax_single.R:207:3' [success] 'test_incometax_single.R:208:3' [success] 'test_incometax_single.R:209:3' [success] 'test_incometax_single.R:210:3' [success] 'test_incometax_single.R:211:3' [success] 'test_incometax_single.R:212:3' [success] 'test_incometax_single.R:213:3' [success] 'test_incometax_single.R:214:3' [success] 'test_incometax_single.R:215:3' [success] 'test_incometax_single.R:216:3' [success] 'test_incometax_single.R:217:3' [success] 'test_incometax_single.R:218:3' [success] 'test_incometax_single.R:223:3' [success] 'test_incometax_single.R:224:3' [success] 'test_incometax_single.R:229:3' [success] End test: Previous years (intel compiler trigger) Start test: Previous years 'test_incometax_single.R:238:3' [success] 'test_incometax_single.R:247:3' [success] End test: Previous years Start test: Error handling 'test_inverse_average_rate.R:4:3' [success] End test: Error handling Start test: Average tax rates correctly inverted 'test_inverse_average_rate.R:9:3' [skip] End test: Average tax rates correctly inverted Start test: Average tax rates correctly inverted for 2003-04 'test_inverse_average_rate.R:27:3' [skip] End test: Average tax rates correctly inverted for 2003-04 Start test: Average tax rates correctly inverted for 2004-05 'test_inverse_average_rate.R:45:3' [skip] End test: Average tax rates correctly inverted for 2004-05 Start test: Average tax rates correctly inverted for 2005-06 'test_inverse_average_rate.R:63:3' [skip] End test: Average tax rates correctly inverted for 2005-06 Start test: Average tax rates correctly inverted for 2006-07 'test_inverse_average_rate.R:81:3' [skip] End test: Average tax rates correctly inverted for 2006-07 Start test: Average tax rates correctly inverted for 2007-08 'test_inverse_average_rate.R:99:3' [skip] End test: Average tax rates correctly inverted for 2007-08 Start test: Average tax rates correctly inverted for 2008-09 'test_inverse_average_rate.R:117:3' [skip] End test: Average tax rates correctly inverted for 2008-09 Start test: Average tax rates correctly inverted for 2009-10 'test_inverse_average_rate.R:135:3' [skip] End test: Average tax rates correctly inverted for 2009-10 Start test: Average tax rates correctly inverted for 2010-11 'test_inverse_average_rate.R:162:5' [success] End test: Average tax rates correctly inverted for 2010-11 Start test: Average tax rates correctly inverted for 2011-12 'test_inverse_average_rate.R:179:5' [success] End test: Average tax rates correctly inverted for 2011-12 Start test: Average tax rates correctly inverted for 2012-13 'test_inverse_average_rate.R:193:5' [success] End test: Average tax rates correctly inverted for 2012-13 Start test: Average tax rates correctly inverted for 2013-14 'test_inverse_average_rate.R:213:5' [success] End test: Average tax rates correctly inverted for 2013-14 Start test: Inverse single income matches. 'test_inverse_income.R:4:3' [skip] End test: Inverse single income matches. Start test: Infinities 'test_inverse_income.R:24:3' [success] 'test_inverse_income.R:25:3' [success] End test: Infinities Start test: Inverse income on zero 'test_inverse_income.R:29:3' [success] 'test_inverse_income.R:30:3' [success] 'test_inverse_income.R:31:3' [success] 'test_inverse_income.R:32:3' [success] 'test_inverse_income.R:33:3' [success] End test: Inverse income on zero Start test: Inverse long income matches. 'test_inverse_income.R:37:3' [skip] End test: Inverse long income matches. Start test: Previously failed long income matches. 'test_inverse_income.R:52:3' [skip] End test: Previously failed long income matches. Start test: Inverse income long on zero 'test_inverse_income.R:60:3' [skip] End test: Inverse income long on zero Start test: Other arguments passed to income_tax 'test_inverse_income.R:68:3' [success] End test: Other arguments passed to income_tax Start test: is.fy() returns TRUE on FYs 'test_isfy.R:10:3' [success] 'test_isfy.R:11:3' [success] 'test_isfy.R:12:3' [success] End test: is.fy() returns TRUE on FYs Start test: is.fy() returns FALSE on non-FYs 'test_isfy.R:16:3' [success] 'test_isfy.R:17:3' [success] 'test_isfy.R:18:3' [success] 'test_isfy.R:19:3' [success] 'test_isfy.R:20:3' [success] End test: is.fy() returns FALSE on non-FYs Start test: Other fy utils 'test_isfy.R:24:3' [success] 'test_isfy.R:26:3' [success] 'test_isfy.R:27:3' [success] 'test_isfy.R:29:3' [success] End test: Other fy utils Start test: all_fy 'test_isfy.R:33:3' [error] End test: all_fy Start test: is_fy2 'test_isfy.R:39:3' [error] End test: is_fy2 Start test: fy.year and yr2fy are identical 'test_isfy.R:44:3' [success] End test: fy.year and yr2fy are identical Start test: grattan.assume1901_2100 options 'test_isfy.R:49:3' [skip] End test: grattan.assume1901_2100 options Start test: range_fy 'test_isfy.R:59:3' [success] 'test_isfy.R:60:3' [success] End test: range_fy Start test: NA handling 'test_isfy.R:66:3' [success] 'test_isfy.R:68:3' [success] End test: NA handling Start test: qtr2fy error 'test_isfy.R:73:3' [success] End test: qtr2fy error Start test: medicare_levy error handling / deprecated 'test_medicare_levy.R:4:3' [success] 'test_medicare_levy.R:5:3' [success] End test: medicare_levy error handling / deprecated Start test: medicare_levy monotonic 'test_medicare_levy.R:10:3' [success] End test: medicare_levy monotonic Start test: medicare_levy returns known values 'test_medicare_levy.R:22:3' [success] 'test_medicare_levy.R:23:3' [success] 'test_medicare_levy.R:26:3' [success] 'test_medicare_levy.R:27:3' [success] 'test_medicare_levy.R:28:3' [success] 'test_medicare_levy.R:29:3' [success] 'test_medicare_levy.R:31:3' [success] 'test_medicare_levy.R:32:3' [success] 'test_medicare_levy.R:35:3' [success] 'test_medicare_levy.R:42:3' [success] 'test_medicare_levy.R:43:3' [success] 'test_medicare_levy.R:44:3' [success] 'test_medicare_levy.R:45:3' [success] 'test_medicare_levy.R:47:3' [success] 'test_medicare_levy.R:48:3' [success] 'test_medicare_levy.R:49:3' [success] 'test_medicare_levy.R:50:3' [success] 'test_medicare_levy.R:51:3' [success] 'test_medicare_levy.R:53:3' [success] 'test_medicare_levy.R:54:3' [success] 'test_medicare_levy.R:55:3' [success] 'test_medicare_levy.R:56:3' [success] 'test_medicare_levy.R:57:3' [success] End test: medicare_levy returns known values Start test: Medicare family income 2015-16 'test_medicare_levy.R:61:3' [skip] End test: Medicare family income 2015-16 Start test: Medicare with dependants 'test_medicare_levy.R:71:3' [skip] End test: Medicare with dependants Start test: Agrees with Master tax guide 'test_medicare_levy.R:85:3' [success] 'test_medicare_levy.R:86:3' [success] 'test_medicare_levy.R:87:3' [success] End test: Agrees with Master tax guide Start test: Medicare error handling 'test_medicare_levy.R:91:3' [success] 'test_medicare_levy.R:92:3' [success] End test: Medicare error handling Start test: CJ model 'test_modelCJ.R:2:3' [skip] End test: CJ model Start test: Error handling 'test_model_income_tax.R:4:3' [skip] End test: Error handling Start test: La plus ca meme la plus ca meme: la deluge 'test_model_income_tax.R:37:3' [skip] End test: La plus ca meme la plus ca meme: la deluge Start test: La plus ca meme la plus ca meme: medicare levy 'test_model_income_tax.R:58:3' [skip] End test: La plus ca meme la plus ca meme: medicare levy Start test: La plus ca meme la plus ca meme: LITO 'test_model_income_tax.R:78:3' [skip] End test: La plus ca meme la plus ca meme: LITO Start test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO 'test_model_income_tax.R:98:3' [skip] End test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO Start test: Increase in a rate results in more tax 'test_model_income_tax.R:115:3' [skip] End test: Increase in a rate results in more tax Start test: Medicare warnings 'test_model_income_tax.R:138:3' [skip] End test: Medicare warnings Start test: Medicare options 'test_model_income_tax.R:245:3' [skip] End test: Medicare options Start test: Medicare families 'test_model_income_tax.R:324:3' [skip] End test: Medicare families Start test: SAPTO modelled 'test_model_income_tax.R:360:3' [skip] End test: SAPTO modelled Start test: LITO 'test_model_income_tax.R:436:3' [skip] End test: LITO Start test: Elasticity of taxable income 'test_model_income_tax.R:458:3' [skip] End test: Elasticity of taxable income Start test: Elasticity 0 vs 1 'test_model_income_tax.R:542:3' [skip] End test: Elasticity 0 vs 1 Start test: Lamington 'test_model_income_tax.R:581:3' [skip] End test: Lamington Start test: Clear columns 'test_model_income_tax.R:623:3' [skip] End test: Clear columns Start test: sample_file.int 'test_model_income_tax.R:632:3' [skip] End test: sample_file.int Start test: Keyed data.table 'test_model_income_tax.R:643:3' [skip] End test: Keyed data.table Start test: Budget2018 'test_model_income_tax.R:654:3' [skip] End test: Budget2018 Start test: CGT discount 'test_model_income_tax.R:688:3' [skip] End test: CGT discount Start test: CGT (errors) 'test_model_income_tax.R:761:3' [skip] End test: CGT (errors) Start test: SAPTO parameters should not go out of range (causing NAs) 'test_model_income_tax.R:774:3' [skip] End test: SAPTO parameters should not go out of range (causing NAs) Start test: Issue #176 'test_model_income_tax.R:786:3' [skip] End test: Issue #176 Start test: SAPTO modelling done for Age of entitlement report 'test_model_income_tax.R:794:3' [skip] End test: SAPTO modelling done for Age of entitlement report Start test: Error handling 'test_mutate_ntile.R:7:3' [success] 'test_mutate_ntile.R:10:3' [success] 'test_mutate_ntile.R:13:3' [success] 'test_mutate_ntile.R:18:3' [success] 'test_mutate_ntile.R:21:3' [success] 'test_mutate_ntile.R:25:3' [success] 'test_mutate_ntile.R:29:3' [success] 'test_mutate_ntile.R:33:3' [success] 'test_mutate_ntile.R:37:3' [success] 'test_mutate_ntile.R:42:3' [success] 'test_mutate_ntile.R:45:3' [success] 'test_mutate_ntile.R:49:3' [success] End test: Error handling Start test: next_fy plus and minus 'test_next_fy.R:10:3' [success] 'test_next_fy.R:11:3' [success] 'test_next_fy.R:13:3' [success] 'test_next_fy.R:14:3' [success] End test: next_fy plus and minus Start test: prev_fy 'test_next_fy.R:18:3' [success] 'test_next_fy.R:19:3' [success] End test: prev_fy Start test: Error handling 'test_progressivity.R:4:3' [success] 'test_progressivity.R:5:3' [success] End test: Error handling Start test: Simple examples 'test_progressivity.R:11:3' [success] 'test_progressivity.R:12:3' [success] 'test_progressivity.R:13:3' [success] End test: Simple examples Start test: project using australian population 'test_project_aus_pop.R:17:3' [skip] End test: project using australian population Start test: do_rN 'test_rN.R:2:3' [success] 'test_rN.R:3:3' [success] 'test_rN.R:4:3' [success] 'test_rN.R:6:3' [success] 'test_rN.R:7:3' [success] End test: do_rN Start test: Value of revenue_foregone 'test_revenue_foregone.R:9:3' [success] 'test_revenue_foregone.R:10:3' [success] 'test_revenue_foregone.R:12:3' [success] 'test_revenue_foregone.R:13:3' [success] 'test_revenue_foregone.R:16:3' [success] 'test_revenue_foregone.R:17:3' [success] 'test_revenue_foregone.R:20:3' [success] 'test_revenue_foregone.R:21:3' [success] 'test_revenue_foregone.R:24:3' [success] End test: Value of revenue_foregone Start test: latex output produces LaTeX escaped $ 'test_revenue_foregone.R:41:7' [success] End test: latex output produces LaTeX escaped $ Start test: sapto 'test_sapto.R:2:3' [success] 'test_sapto.R:3:3' [success] 'test_sapto.R:5:3' [success] End test: sapto Start test: valid sapto 'test_sapto.R:9:3' [success] 'test_sapto.R:10:3' [success] End test: valid sapto Start test: Example in explanatory memo 'test_small_business_tax_offset.R:4:3' [success] End test: Example in explanatory memo Start test: Always zero for fy_year 'test_small_business_tax_offset.R:15:3' [success] 'test_small_business_tax_offset.R:21:3' [success] 'test_small_business_tax_offset.R:27:3' [success] End test: Always zero for fy_year Start test: Error handling 'test_small_business_tax_offset.R:36:3' [success] 'test_small_business_tax_offset.R:42:3' [success] 'test_small_business_tax_offset.R:49:3' [success] 'test_small_business_tax_offset.R:56:3' [success] End test: Error handling Start test: Warnings with dotsATO 'test_small_business_tax_offset.R:67:3' [skip] End test: Warnings with dotsATO Start test: Results with .dots.ATO 'test_small_business_tax_offset.R:96:3' [skip] End test: Results with .dots.ATO Start test: pension 'test_standardize_payment_names.R:4:3' [success] 'test_standardize_payment_names.R:6:3' [success] End test: pension Start test: stop_via 'test_stop.R:4:3' [success] 'test_stop.R:5:3' [success] 'test_stop.R:6:3' [success] End test: stop_via Start test: Error handling 'test_super_vars.R:4:3' [success] End test: Error handling Start test: Div293 tax is bounded by cap @ 25k 'test_super_vars.R:10:3' [skip] End test: Div293 tax is bounded by cap @ 25k Start test: Div293 tax is bounded by cap @ 20k 'test_super_vars.R:17:3' [skip] End test: Div293 tax is bounded by cap @ 20k Start test: Div293 tax is bounded by cap @ 30k 'test_super_vars.R:23:3' [skip] End test: Div293 tax is bounded by cap @ 30k Start test: Div293 tax is bounded by an arbitrary cap 'test_super_vars.R:32:3' [skip] End test: Div293 tax is bounded by an arbitrary cap Start test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax 'test_super_vars.R:52:3' [skip] End test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax Start test: Counts for Div 293 at 250e3 not at odds with PBO 'test_super_vars.R:80:3' [skip] End test: Counts for Div 293 at 250e3 not at odds with PBO Start test: Imputed, reweighted sample file agrees with aggregates by no less than 1% 'test_super_vars.R:130:3' [skip] End test: Imputed, reweighted sample file agrees with aggregates by no less than 1% Start test: Error handling 'test_super_vars.R:170:3' [skip] End test: Error handling Start test: Corner cases 'test_super_vars.R:210:3' [skip] End test: Corner cases Start test: Warning with no WEIGHT. 'test_super_vars.R:240:3' [skip] End test: Warning with no WEIGHT. Start test: Marginals Rate 'test_super_vars.R:246:3' [skip] End test: Marginals Rate Start test: income_tax on individual sample file reflect historical collections 'test_total_receipts.R:15:3' [skip] End test: income_tax on individual sample file reflect historical collections Start test: unselect_ 'test_utils.R:5:3' [success] End test: unselect_ Start test: as.numeric_unless_warning 'test_utils.R:11:3' [success] 'test_utils.R:12:3' [success] End test: as.numeric_unless_warning Start test: anyIntersection 'test_utils.R:16:3' [success] 'test_utils.R:17:3' [success] 'test_utils.R:18:3' [success] End test: anyIntersection Start test: last_over_first 'test_utils.R:22:3' [success] 'test_utils.R:23:3' [success] 'test_utils.R:24:3' [success] End test: last_over_first Start test: coalesce 'test_utils.R:28:3' [success] End test: coalesce Start test: other utils 'test_utils.R:32:3' [success] 'test_utils.R:33:3' [success] End test: other utils Start test: prohibit_length0_vectors 'test_utils.R:37:3' [success] End test: prohibit_length0_vectors Start test: prohibit_vector_recyling 'test_utils.R:41:3' [success] 'test_utils.R:42:3' [success] 'test_utils.R:43:3' [success] 'test_utils.R:44:3' [success] 'test_utils.R:45:3' [success] End test: prohibit_vector_recyling Start test: qtrs_ahead 'test_utils.R:49:3' [success] 'test_utils.R:50:3' [success] 'test_utils.R:51:3' [success] End test: qtrs_ahead Start test: fast selector 'test_utils.R:57:3' [success] End test: fast selector Start test: koffset 'test_utils.R:62:3' [success] End test: koffset Start test: Switch 'test_utils.R:67:3' [success] 'test_utils.R:69:3' [success] End test: Switch Start test: getOption 'test_utils.R:74:3' [success] 'test_utils.R:75:3' [success] End test: getOption Start test: age2age_range 'test_utils.R:80:3' [success] 'test_utils.R:81:3' [success] 'test_utils.R:82:3' [success] 'test_utils.R:83:3' [success] 'test_utils.R:84:3' [success] 'test_utils.R:85:3' [success] End test: age2age_range Start test: hasntName 'test_utils.R:89:3' [success] 'test_utils.R:90:3' [success] End test: hasntName Start test: seq_qtr 'test_utils.R:95:3' [success] 'test_utils.R:98:3' [success] End test: seq_qtr Start test: Error handling 'test_validate_fys.R:10:3' [failure] 'test_validate_fys.R:14:3' [failure] 'test_validate_fys.R:19:3' [failure] 'test_validate_fys.R:22:3' [failure] End test: Error handling Start test: min or max years 'test_validate_fys.R:29:3' [success] 'test_validate_fys.R:30:3' [success] 'test_validate_fys.R:31:3' [success] 'test_validate_fys.R:32:3' [success] 'test_validate_fys.R:33:3' [success] End test: min or max years Start test: validation of other types 'test_validate_fys.R:38:3' [success] 'test_validate_fys.R:39:3' [success] 'test_validate_fys.R:42:3' [success] End test: validation of other types Start test: Validation memoization 'test_validate_fys.R:49:3' [success] 'test_validate_fys.R:51:3' [success] 'test_validate_fys.R:53:3' [success] 'test_validate_fys.R:56:3' [success] 'test_validate_fys.R:59:3' [success] 'test_validate_fys.R:61:3' [success] 'test_validate_fys.R:64:3' [success] End test: Validation memoization Start test: Errors 'test_validate_per.R:4:3' [success] 'test_validate_per.R:6:3' [success] 'test_validate_per.R:8:3' [success] 'test_validate_per.R:10:3' [success] 'test_validate_per.R:13:3' [success] End test: Errors Start test: Values 'test_validate_per.R:18:3' [success] 'test_validate_per.R:20:3' [success] 'test_validate_per.R:22:3' [success] 'test_validate_per.R:24:3' [success] 'test_validate_per.R:26:3' [success] End test: Values Start test: errors 'test_verify_date.R:4:3' [success] 'test_verify_date.R:7:3' [success] 'test_verify_date.R:10:3' [success] 'test_verify_date.R:13:3' [success] 'test_verify_date.R:15:3' [success] 'test_verify_date.R:18:3' [success] 'test_verify_date.R:20:3' [success] 'test_verify_date.R:23:3' [success] 'test_verify_date.R:26:3' [success] End test: errors Start test: values 'test_verify_date.R:33:3' [success] 'test_verify_date.R:34:3' [success] 'test_verify_date.R:38:3' [success] 'test_verify_date.R:42:3' [success] 'test_verify_date.R:44:3' [success] 'test_verify_date.R:48:3' [success] 'test_verify_date.R:52:3' [success] 'test_verify_date.R:56:3' [success] 'test_verify_date.R:60:3' [success] 'test_verify_date.R:64:3' [success] End test: values Start test: sprintf error 'test_verify_date.R:69:3' [success] End test: sprintf error Start test: Performance regression: cpi_inflator 'test_zbenchmark.R:4:3' [skip] End test: Performance regression: cpi_inflator Start test: Performance regression: wage_inflator 'test_zbenchmark.R:27:3' [skip] End test: Performance regression: wage_inflator Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 2025.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [17s/19s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > > all.pkgs <- c("testthat", "data.table", "magrittr", "withr") > > > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) { + + library(testthat) + library(grattan) + library(hutils) + library(data.table) + library(magrittr) + setDTthreads(1L) + if (identical(Sys.getenv("CIRCLECI"), "true")) { + test_check("grattan", + reporter = JunitReporter$new(file = "junit_result.xml")) + } else { + test_check("grattan", reporter = LocationReporter) + } + } Attaching package: 'hutils' The following object is masked from 'package:base': %notin% Attaching package: 'data.table' The following object is masked from 'package:hutils': %notin% The following object is masked from 'package:base': %notin% Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Start test: decode_age_range works 'test-decode_age_range.R:2:3' [success] End test: decode_age_range works Start test: income_tax2 works 'test-income_tax2.R:2:3' [success] 'test-income_tax2.R:3:3' [success] 'test-income_tax2.R:5:3' [success] End test: income_tax2 works Start test: dots ATO 'test-income_tax2.R:10:3' [skip] End test: dots ATO Start test: marginal_rate works 'test-marginal_rate.R:2:3' [skip] End test: marginal_rate works Start test: Data is up-to-date as documented 'test_0sysdata.R:5:3' [skip] End test: Data is up-to-date as documented Start test: pkgdown up-to-date 'test_0sysdata.R:42:3' [skip] End test: pkgdown up-to-date Start test: CG population inflator 'test_CG_inflators.R:4:3' [success] 'test_CG_inflators.R:5:3' [success] 'test_CG_inflators.R:6:3' [success] End test: CG population inflator Start test: LITO 'test_LITO.R:4:3' [success] 'test_LITO.R:5:3' [success] 'test_LITO.R:6:3' [success] End test: LITO Start test: LMITO 'test_LITO.R:11:3' [success] 'test_LITO.R:14:3' [success] End test: LMITO Start test: Offset basics 'test_Offset.R:6:3' [success] 'test_Offset.R:7:3' [success] 'test_Offset.R:8:3' [success] 'test_Offset.R:9:3' [success] 'test_Offset.R:12:3' [success] 'test_Offset.R:18:3' [success] 'test_Offset.R:30:3' [success] End test: Offset basics Start test: Offset internals 'test_Offset.R:36:3' [success] 'test_Offset.R:38:3' [success] End test: Offset internals Start test: set_offsets (with yr) 'test_Offset.R:44:3' [success] 'test_Offset.R:45:3' [success] 'test_Offset.R:46:3' [success] End test: set_offsets (with yr) Start test: multi-offsets 'test_Offset.R:57:3' [success] 'test_Offset.R:58:3' [success] End test: multi-offsets Start test: Validation of System 'test_System.R:5:3' [success] 'test_System.R:10:3' [success] 'test_System.R:11:3' [success] 'test_System.R:15:3' [success] 'test_System.R:19:3' [success] 'test_System.R:23:3' [success] 'test_System.R:27:3' [success] 'test_System.R:31:3' [success] End test: Validation of System Start test: Misc functions 'test_System.R:36:3' [success] 'test_System.R:37:3' [success] End test: Misc functions Start test: age_grouper delivers appropriate results 'test_age_grouper.R:4:3' [success] 'test_age_grouper.R:5:3' [success] 'test_age_grouper.R:7:3' [success] 'test_age_grouper.R:10:3' [success] End test: age_grouper delivers appropriate results Start test: Long age_grouper 'test_age_grouper.R:16:3' [success] 'test_age_grouper.R:19:3' [success] End test: Long age_grouper Start test: Alternate usage: years of birth 'test_age_grouper.R:23:3' [success] End test: Alternate usage: years of birth Start test: Long age grouper with NAs 'test_age_grouper.R:33:3' [success] 'test_age_grouper.R:36:3' [success] End test: Long age grouper with NAs Start test: Error handling 'test_age_pension_age.R:4:3' [success] 'test_age_pension_age.R:6:3' [success] 'test_age_pension_age.R:7:3' [success] 'test_age_pension_age.R:10:3' [success] 'test_age_pension_age.R:12:3' [success] End test: Error handling Start test: Women before 1995 'test_age_pension_age.R:23:3' [success] 'test_age_pension_age.R:26:3' [success] 'test_age_pension_age.R:29:3' [success] End test: Women before 1995 Start test: 65 'test_age_pension_age.R:35:3' [success] End test: 65 Start test: Future dates 'test_age_pension_age.R:44:3' [success] 'test_age_pension_age.R:46:3' [success] End test: Future dates Start test: aus pop fy age works 'test_aus_pop_fy_age.R:7:3' [success] 'test_aus_pop_fy_age.R:8:3' [success] 'test_aus_pop_fy_age.R:10:3' [success] 'test_aus_pop_fy_age.R:12:3' [success] End test: aus pop fy age works Start test: Returns correct values 'test_aus_pop_qtr.R:5:3' [success] 'test_aus_pop_qtr.R:6:3' [success] 'test_aus_pop_qtr.R:7:3' [success] 'test_aus_pop_qtr.R:11:3' [success] 'test_aus_pop_qtr.R:33:3' [success] End test: Returns correct values Start test: Multiple unordered 'test_aus_pop_qtr.R:53:3' [success] End test: Multiple unordered Start test: Rolls work as expected 'test_aus_pop_qtr.R:61:3' [success] End test: Rolls work as expected Start test: Error handling 'test_aus_pop_qtr.R:68:3' [success] 'test_aus_pop_qtr.R:69:3' [success] 'test_aus_pop_qtr.R:70:3' [success] 'test_aus_pop_qtr.R:71:3' [success] 'test_aus_pop_qtr.R:73:3' [success] 'test_aus_pop_qtr.R:74:3' [success] 'test_aus_pop_qtr.R:75:3' [success] 'test_aus_pop_qtr.R:76:3' [success] 'test_aus_pop_qtr.R:77:3' [success] 'test_aus_pop_qtr.R:79:3' [success] 'test_aus_pop_qtr.R:82:3' [success] End test: Error handling Start test: Error handling 'test_awote.R:4:3' [success] 'test_awote.R:5:3' [success] 'test_awote.R:6:3' [success] 'test_awote.R:7:3' [success] 'test_awote.R:8:3' [success] End test: Error handling Start test: Message 'test_awote.R:12:3' [success] End test: Message Start test: AWOTE fy 'test_awote.R:18:3' [success] 'test_awote.R:21:3' [success] End test: AWOTE fy Start test: AWOTE unsorted, issue #204 'test_awote.R:28:3' [success] 'test_awote.R:32:3' [success] 'test_awote.R:58:5' [success] 'test_awote.R:59:5' [success] End test: AWOTE unsorted, issue #204 Start test: Error handling 'test_bto.R:4:3' [success] End test: Error handling Start test: BTO returns known results 'test_bto.R:8:3' [success] 'test_bto.R:11:3' [success] 'test_bto.R:15:3' [success] End test: BTO returns known results Start test: check_TF 'test_check_TF.R:4:3' [success] 'test_check_TF.R:5:3' [success] 'test_check_TF.R:7:3' [success] 'test_check_TF.R:10:3' [success] 'test_check_TF.R:13:3' [success] End test: check_TF Start test: check_num1 'test_check_TF.R:18:3' [success] 'test_check_TF.R:19:3' [success] 'test_check_TF.R:22:3' [success] 'test_check_TF.R:26:3' [success] 'test_check_TF.R:30:3' [success] End test: check_num1 Start test: Error handling 'test_compare_avg_tax_rates.R:9:3' [success] 'test_compare_avg_tax_rates.R:16:3' [failure] 'test_compare_avg_tax_rates.R:19:3' [success] 'test_compare_avg_tax_rates.R:23:3' [success] 'test_compare_avg_tax_rates.R:26:3' [success] End test: Error handling Start test: data.frame 'test_compare_avg_tax_rates.R:39:3' [error] End test: data.frame Start test: Expected output 'test_compare_avg_tax_rates.R:49:3' [error] End test: Expected output Start test: ids that's not 'id' 'test_compare_avg_tax_rates.R:74:3' [error] End test: ids that's not 'id' Start test: Error handling 'test_financialfunctions.R:4:3' [success] End test: Error handling Start test: Matches Excel 'test_financialfunctions.R:8:3' [success] 'test_financialfunctions.R:9:3' [success] 'test_financialfunctions.R:10:3' [success] 'test_financialfunctions.R:11:3' [success] 'test_financialfunctions.R:12:3' [success] End test: Matches Excel Start test: Error handling 'test_generic_inflator.R:4:3' [success] End test: Error handling Start test: generic inflator doesn't fail! 'test_generic_inflator.R:12:3' [success] 'test_generic_inflator.R:13:3' [success] End test: generic inflator doesn't fail! Start test: generic inflator gives higher/lower for upper/lower 'test_generic_inflator.R:17:3' [success] 'test_generic_inflator.R:19:3' [success] 'test_generic_inflator.R:24:3' [success] End test: generic inflator gives higher/lower for upper/lower Start test: GNI returns known results 'test_gni.R:4:3' [success] 'test_gni.R:8:3' [success] End test: GNI returns known results Start test: Error handling 'test_gni.R:15:3' [skip] End test: Error handling Start test: GDP returns known results 'test_gni.R:22:3' [success] 'test_gni.R:26:3' [success] End test: GDP returns known results Start test: Error handling 'test_gni.R:34:3' [skip] End test: Error handling Start test: income_tax collections in 2003-04 match final budget outcome by 1% 'test_incomeTaxCollections.R:4:3' [skip] End test: income_tax collections in 2003-04 match final budget outcome by 1% Start test: income_tax collections in 2006-07 match final budget outcome by 1% 'test_incomeTaxCollections.R:18:3' [skip] End test: income_tax collections in 2006-07 match final budget outcome by 1% Start test: Projections match collections 'test_incomeTaxCollections.R:34:3' [skip] End test: Projections match collections Start test: No test 'test_incometax_dotsATO.R:4:3' [success] End test: No test Start test: sfa 'test_incometax_dotsATO_sfa.R:7:3' [success] 'test_incometax_dotsATO_sfa.R:8:3' [skip] End test: sfa Start test: income tax checks 'test_incometax_single.R:5:3' [skip] End test: income tax checks Start test: income_tax returns known results 'test_incometax_single.R:36:3' [success] 'test_incometax_single.R:37:3' [success] 'test_incometax_single.R:38:3' [success] 'test_incometax_single.R:40:3' [success] 'test_incometax_single.R:41:3' [success] 'test_incometax_single.R:42:3' [success] 'test_incometax_single.R:43:3' [success] 'test_incometax_single.R:45:3' [success] 'test_incometax_single.R:46:3' [success] 'test_incometax_single.R:48:3' [success] 'test_incometax_single.R:68:3' [success] 'test_incometax_single.R:76:3' [success] 'test_incometax_single.R:77:3' [success] 'test_incometax_single.R:78:3' [success] 'test_incometax_single.R:79:3' [success] 'test_incometax_single.R:80:3' [success] End test: income_tax returns known results Start test: income_tax is not NA for any years) 'test_incometax_single.R:94:3' [error] End test: income_tax is not NA for any years) Start test: income_tax is not NA for 2003-04 'test_incometax_single.R:98:3' [success] End test: income_tax is not NA for 2003-04 Start test: income_tax always returns the length of its arguments 'test_incometax_single.R:103:3' [error] End test: income_tax always returns the length of its arguments Start test: Budget Speech 2003-04 'test_incometax_single.R:117:3' [success] 'test_incometax_single.R:118:3' [success] 'test_incometax_single.R:119:3' [success] End test: Budget Speech 2003-04 Start test: Previous years (intel compiler trigger) 'test_incometax_single.R:123:3' [success] 'test_incometax_single.R:124:3' [success] 'test_incometax_single.R:125:3' [success] 'test_incometax_single.R:126:3' [success] 'test_incometax_single.R:127:3' [success] 'test_incometax_single.R:128:3' [success] 'test_incometax_single.R:129:3' [success] 'test_incometax_single.R:130:3' [success] 'test_incometax_single.R:131:3' [success] 'test_incometax_single.R:132:3' [success] 'test_incometax_single.R:133:3' [success] 'test_incometax_single.R:134:3' [success] 'test_incometax_single.R:135:3' [success] 'test_incometax_single.R:136:3' [success] 'test_incometax_single.R:137:3' [success] 'test_incometax_single.R:138:3' [success] 'test_incometax_single.R:139:3' [success] 'test_incometax_single.R:140:3' [success] 'test_incometax_single.R:141:3' [success] 'test_incometax_single.R:142:3' [success] 'test_incometax_single.R:143:3' [success] 'test_incometax_single.R:144:3' [success] 'test_incometax_single.R:145:3' [success] 'test_incometax_single.R:146:3' [success] 'test_incometax_single.R:147:3' [success] 'test_incometax_single.R:148:3' [success] 'test_incometax_single.R:149:3' [success] 'test_incometax_single.R:150:3' [success] 'test_incometax_single.R:151:3' [success] 'test_incometax_single.R:152:3' [success] 'test_incometax_single.R:153:3' [success] 'test_incometax_single.R:154:3' [success] 'test_incometax_single.R:155:3' [success] 'test_incometax_single.R:156:3' [success] 'test_incometax_single.R:157:3' [success] 'test_incometax_single.R:158:3' [success] 'test_incometax_single.R:159:3' [success] 'test_incometax_single.R:160:3' [success] 'test_incometax_single.R:161:3' [success] 'test_incometax_single.R:162:3' [success] 'test_incometax_single.R:163:3' [success] 'test_incometax_single.R:164:3' [success] 'test_incometax_single.R:165:3' [success] 'test_incometax_single.R:166:3' [success] 'test_incometax_single.R:167:3' [success] 'test_incometax_single.R:168:3' [success] 'test_incometax_single.R:169:3' [success] 'test_incometax_single.R:170:3' [success] 'test_incometax_single.R:172:3' [success] 'test_incometax_single.R:173:3' [success] 'test_incometax_single.R:174:3' [success] 'test_incometax_single.R:175:3' [success] 'test_incometax_single.R:176:3' [success] 'test_incometax_single.R:177:3' [success] 'test_incometax_single.R:178:3' [success] 'test_incometax_single.R:179:3' [success] 'test_incometax_single.R:180:3' [success] 'test_incometax_single.R:181:3' [success] 'test_incometax_single.R:182:3' [success] 'test_incometax_single.R:183:3' [success] 'test_incometax_single.R:184:3' [success] 'test_incometax_single.R:185:3' [success] 'test_incometax_single.R:186:3' [success] 'test_incometax_single.R:187:3' [success] 'test_incometax_single.R:188:3' [success] 'test_incometax_single.R:189:3' [success] 'test_incometax_single.R:190:3' [success] 'test_incometax_single.R:191:3' [success] 'test_incometax_single.R:192:3' [success] 'test_incometax_single.R:193:3' [success] 'test_incometax_single.R:194:3' [success] 'test_incometax_single.R:195:3' [success] 'test_incometax_single.R:196:3' [success] 'test_incometax_single.R:197:3' [success] 'test_incometax_single.R:198:3' [success] 'test_incometax_single.R:199:3' [success] 'test_incometax_single.R:200:3' [success] 'test_incometax_single.R:201:3' [success] 'test_incometax_single.R:202:3' [success] 'test_incometax_single.R:203:3' [success] 'test_incometax_single.R:204:3' [success] 'test_incometax_single.R:205:3' [success] 'test_incometax_single.R:206:3' [success] 'test_incometax_single.R:207:3' [success] 'test_incometax_single.R:208:3' [success] 'test_incometax_single.R:209:3' [success] 'test_incometax_single.R:210:3' [success] 'test_incometax_single.R:211:3' [success] 'test_incometax_single.R:212:3' [success] 'test_incometax_single.R:213:3' [success] 'test_incometax_single.R:214:3' [success] 'test_incometax_single.R:215:3' [success] 'test_incometax_single.R:216:3' [success] 'test_incometax_single.R:217:3' [success] 'test_incometax_single.R:218:3' [success] 'test_incometax_single.R:223:3' [success] 'test_incometax_single.R:224:3' [success] 'test_incometax_single.R:229:3' [success] End test: Previous years (intel compiler trigger) Start test: Previous years 'test_incometax_single.R:238:3' [success] 'test_incometax_single.R:247:3' [success] End test: Previous years Start test: Error handling 'test_inverse_average_rate.R:4:3' [success] End test: Error handling Start test: Average tax rates correctly inverted 'test_inverse_average_rate.R:9:3' [skip] End test: Average tax rates correctly inverted Start test: Average tax rates correctly inverted for 2003-04 'test_inverse_average_rate.R:27:3' [skip] End test: Average tax rates correctly inverted for 2003-04 Start test: Average tax rates correctly inverted for 2004-05 'test_inverse_average_rate.R:45:3' [skip] End test: Average tax rates correctly inverted for 2004-05 Start test: Average tax rates correctly inverted for 2005-06 'test_inverse_average_rate.R:63:3' [skip] End test: Average tax rates correctly inverted for 2005-06 Start test: Average tax rates correctly inverted for 2006-07 'test_inverse_average_rate.R:81:3' [skip] End test: Average tax rates correctly inverted for 2006-07 Start test: Average tax rates correctly inverted for 2007-08 'test_inverse_average_rate.R:99:3' [skip] End test: Average tax rates correctly inverted for 2007-08 Start test: Average tax rates correctly inverted for 2008-09 'test_inverse_average_rate.R:117:3' [skip] End test: Average tax rates correctly inverted for 2008-09 Start test: Average tax rates correctly inverted for 2009-10 'test_inverse_average_rate.R:135:3' [skip] End test: Average tax rates correctly inverted for 2009-10 Start test: Average tax rates correctly inverted for 2010-11 'test_inverse_average_rate.R:159:5' [success] End test: Average tax rates correctly inverted for 2010-11 Start test: Average tax rates correctly inverted for 2011-12 'test_inverse_average_rate.R:179:5' [success] End test: Average tax rates correctly inverted for 2011-12 Start test: Average tax rates correctly inverted for 2012-13 'test_inverse_average_rate.R:196:5' [success] End test: Average tax rates correctly inverted for 2012-13 Start test: Average tax rates correctly inverted for 2013-14 'test_inverse_average_rate.R:213:5' [success] End test: Average tax rates correctly inverted for 2013-14 Start test: Inverse single income matches. 'test_inverse_income.R:4:3' [skip] End test: Inverse single income matches. Start test: Infinities 'test_inverse_income.R:24:3' [success] 'test_inverse_income.R:25:3' [success] End test: Infinities Start test: Inverse income on zero 'test_inverse_income.R:29:3' [success] 'test_inverse_income.R:30:3' [success] 'test_inverse_income.R:31:3' [success] 'test_inverse_income.R:32:3' [success] 'test_inverse_income.R:33:3' [success] End test: Inverse income on zero Start test: Inverse long income matches. 'test_inverse_income.R:37:3' [skip] End test: Inverse long income matches. Start test: Previously failed long income matches. 'test_inverse_income.R:52:3' [skip] End test: Previously failed long income matches. Start test: Inverse income long on zero 'test_inverse_income.R:60:3' [skip] End test: Inverse income long on zero Start test: Other arguments passed to income_tax 'test_inverse_income.R:68:3' [success] End test: Other arguments passed to income_tax Start test: is.fy() returns TRUE on FYs 'test_isfy.R:10:3' [success] 'test_isfy.R:11:3' [success] 'test_isfy.R:12:3' [success] End test: is.fy() returns TRUE on FYs Start test: is.fy() returns FALSE on non-FYs 'test_isfy.R:16:3' [success] 'test_isfy.R:17:3' [success] 'test_isfy.R:18:3' [success] 'test_isfy.R:19:3' [success] 'test_isfy.R:20:3' [success] End test: is.fy() returns FALSE on non-FYs Start test: Other fy utils 'test_isfy.R:24:3' [success] 'test_isfy.R:26:3' [success] 'test_isfy.R:27:3' [success] 'test_isfy.R:29:3' [success] End test: Other fy utils Start test: all_fy 'test_isfy.R:33:3' [error] End test: all_fy Start test: is_fy2 'test_isfy.R:39:3' [error] End test: is_fy2 Start test: fy.year and yr2fy are identical 'test_isfy.R:44:3' [success] End test: fy.year and yr2fy are identical Start test: grattan.assume1901_2100 options 'test_isfy.R:49:3' [skip] End test: grattan.assume1901_2100 options Start test: range_fy 'test_isfy.R:59:3' [success] 'test_isfy.R:60:3' [success] End test: range_fy Start test: NA handling 'test_isfy.R:66:3' [success] 'test_isfy.R:68:3' [success] End test: NA handling Start test: qtr2fy error 'test_isfy.R:73:3' [success] End test: qtr2fy error Start test: medicare_levy error handling / deprecated 'test_medicare_levy.R:4:3' [success] 'test_medicare_levy.R:5:3' [success] End test: medicare_levy error handling / deprecated Start test: medicare_levy monotonic 'test_medicare_levy.R:10:3' [success] End test: medicare_levy monotonic Start test: medicare_levy returns known values 'test_medicare_levy.R:22:3' [success] 'test_medicare_levy.R:23:3' [success] 'test_medicare_levy.R:26:3' [success] 'test_medicare_levy.R:27:3' [success] 'test_medicare_levy.R:28:3' [success] 'test_medicare_levy.R:29:3' [success] 'test_medicare_levy.R:31:3' [success] 'test_medicare_levy.R:32:3' [success] 'test_medicare_levy.R:35:3' [success] 'test_medicare_levy.R:42:3' [success] 'test_medicare_levy.R:43:3' [success] 'test_medicare_levy.R:44:3' [success] 'test_medicare_levy.R:45:3' [success] 'test_medicare_levy.R:47:3' [success] 'test_medicare_levy.R:48:3' [success] 'test_medicare_levy.R:49:3' [success] 'test_medicare_levy.R:50:3' [success] 'test_medicare_levy.R:51:3' [success] 'test_medicare_levy.R:53:3' [success] 'test_medicare_levy.R:54:3' [success] 'test_medicare_levy.R:55:3' [success] 'test_medicare_levy.R:56:3' [success] 'test_medicare_levy.R:57:3' [success] End test: medicare_levy returns known values Start test: Medicare family income 2015-16 'test_medicare_levy.R:61:3' [skip] End test: Medicare family income 2015-16 Start test: Medicare with dependants 'test_medicare_levy.R:71:3' [skip] End test: Medicare with dependants Start test: Agrees with Master tax guide 'test_medicare_levy.R:85:3' [success] 'test_medicare_levy.R:86:3' [success] 'test_medicare_levy.R:87:3' [success] End test: Agrees with Master tax guide Start test: Medicare error handling 'test_medicare_levy.R:91:3' [success] 'test_medicare_levy.R:92:3' [success] End test: Medicare error handling Start test: CJ model 'test_modelCJ.R:2:3' [skip] End test: CJ model Start test: Error handling 'test_model_income_tax.R:4:3' [skip] End test: Error handling Start test: La plus ca meme la plus ca meme: la deluge 'test_model_income_tax.R:37:3' [skip] End test: La plus ca meme la plus ca meme: la deluge Start test: La plus ca meme la plus ca meme: medicare levy 'test_model_income_tax.R:58:3' [skip] End test: La plus ca meme la plus ca meme: medicare levy Start test: La plus ca meme la plus ca meme: LITO 'test_model_income_tax.R:78:3' [skip] End test: La plus ca meme la plus ca meme: LITO Start test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO 'test_model_income_tax.R:98:3' [skip] End test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO Start test: Increase in a rate results in more tax 'test_model_income_tax.R:115:3' [skip] End test: Increase in a rate results in more tax Start test: Medicare warnings 'test_model_income_tax.R:138:3' [skip] End test: Medicare warnings Start test: Medicare options 'test_model_income_tax.R:245:3' [skip] End test: Medicare options Start test: Medicare families 'test_model_income_tax.R:324:3' [skip] End test: Medicare families Start test: SAPTO modelled 'test_model_income_tax.R:360:3' [skip] End test: SAPTO modelled Start test: LITO 'test_model_income_tax.R:436:3' [skip] End test: LITO Start test: Elasticity of taxable income 'test_model_income_tax.R:458:3' [skip] End test: Elasticity of taxable income Start test: Elasticity 0 vs 1 'test_model_income_tax.R:542:3' [skip] End test: Elasticity 0 vs 1 Start test: Lamington 'test_model_income_tax.R:581:3' [skip] End test: Lamington Start test: Clear columns 'test_model_income_tax.R:623:3' [skip] End test: Clear columns Start test: sample_file.int 'test_model_income_tax.R:632:3' [skip] End test: sample_file.int Start test: Keyed data.table 'test_model_income_tax.R:643:3' [skip] End test: Keyed data.table Start test: Budget2018 'test_model_income_tax.R:654:3' [skip] End test: Budget2018 Start test: CGT discount 'test_model_income_tax.R:688:3' [skip] End test: CGT discount Start test: CGT (errors) 'test_model_income_tax.R:761:3' [skip] End test: CGT (errors) Start test: SAPTO parameters should not go out of range (causing NAs) 'test_model_income_tax.R:774:3' [skip] End test: SAPTO parameters should not go out of range (causing NAs) Start test: Issue #176 'test_model_income_tax.R:786:3' [skip] End test: Issue #176 Start test: SAPTO modelling done for Age of entitlement report 'test_model_income_tax.R:794:3' [skip] End test: SAPTO modelling done for Age of entitlement report Start test: Error handling 'test_mutate_ntile.R:7:3' [success] 'test_mutate_ntile.R:10:3' [success] 'test_mutate_ntile.R:13:3' [success] 'test_mutate_ntile.R:18:3' [success] 'test_mutate_ntile.R:21:3' [success] 'test_mutate_ntile.R:25:3' [success] 'test_mutate_ntile.R:29:3' [success] 'test_mutate_ntile.R:33:3' [success] 'test_mutate_ntile.R:37:3' [success] 'test_mutate_ntile.R:42:3' [success] 'test_mutate_ntile.R:45:3' [success] 'test_mutate_ntile.R:49:3' [success] End test: Error handling Start test: next_fy plus and minus 'test_next_fy.R:10:3' [success] 'test_next_fy.R:11:3' [success] 'test_next_fy.R:13:3' [success] 'test_next_fy.R:14:3' [success] End test: next_fy plus and minus Start test: prev_fy 'test_next_fy.R:18:3' [success] 'test_next_fy.R:19:3' [success] End test: prev_fy Start test: Error handling 'test_progressivity.R:4:3' [success] 'test_progressivity.R:5:3' [success] End test: Error handling Start test: Simple examples 'test_progressivity.R:11:3' [success] 'test_progressivity.R:12:3' [success] 'test_progressivity.R:13:3' [success] End test: Simple examples Start test: project using australian population 'test_project_aus_pop.R:17:3' [skip] End test: project using australian population Start test: do_rN 'test_rN.R:2:3' [success] 'test_rN.R:3:3' [success] 'test_rN.R:4:3' [success] 'test_rN.R:6:3' [success] 'test_rN.R:7:3' [success] End test: do_rN Start test: Value of revenue_foregone 'test_revenue_foregone.R:9:3' [success] 'test_revenue_foregone.R:10:3' [success] 'test_revenue_foregone.R:12:3' [success] 'test_revenue_foregone.R:13:3' [success] 'test_revenue_foregone.R:16:3' [success] 'test_revenue_foregone.R:17:3' [success] 'test_revenue_foregone.R:20:3' [success] 'test_revenue_foregone.R:21:3' [success] 'test_revenue_foregone.R:24:3' [success] End test: Value of revenue_foregone Start test: latex output produces LaTeX escaped $ 'test_revenue_foregone.R:41:7' [success] End test: latex output produces LaTeX escaped $ Start test: sapto 'test_sapto.R:2:3' [success] 'test_sapto.R:3:3' [success] 'test_sapto.R:5:3' [success] End test: sapto Start test: valid sapto 'test_sapto.R:9:3' [success] 'test_sapto.R:10:3' [success] End test: valid sapto Start test: Example in explanatory memo 'test_small_business_tax_offset.R:4:3' [success] End test: Example in explanatory memo Start test: Always zero for fy_year 'test_small_business_tax_offset.R:15:3' [success] 'test_small_business_tax_offset.R:21:3' [success] 'test_small_business_tax_offset.R:27:3' [success] End test: Always zero for fy_year Start test: Error handling 'test_small_business_tax_offset.R:36:3' [success] 'test_small_business_tax_offset.R:42:3' [success] 'test_small_business_tax_offset.R:49:3' [success] 'test_small_business_tax_offset.R:56:3' [success] End test: Error handling Start test: Warnings with dotsATO 'test_small_business_tax_offset.R:67:3' [skip] End test: Warnings with dotsATO Start test: Results with .dots.ATO 'test_small_business_tax_offset.R:96:3' [skip] End test: Results with .dots.ATO Start test: pension 'test_standardize_payment_names.R:4:3' [success] 'test_standardize_payment_names.R:6:3' [success] End test: pension Start test: stop_via 'test_stop.R:4:3' [success] 'test_stop.R:5:3' [success] 'test_stop.R:6:3' [success] End test: stop_via Start test: Error handling 'test_super_vars.R:4:3' [success] End test: Error handling Start test: Div293 tax is bounded by cap @ 25k 'test_super_vars.R:10:3' [skip] End test: Div293 tax is bounded by cap @ 25k Start test: Div293 tax is bounded by cap @ 20k 'test_super_vars.R:17:3' [skip] End test: Div293 tax is bounded by cap @ 20k Start test: Div293 tax is bounded by cap @ 30k 'test_super_vars.R:23:3' [skip] End test: Div293 tax is bounded by cap @ 30k Start test: Div293 tax is bounded by an arbitrary cap 'test_super_vars.R:32:3' [skip] End test: Div293 tax is bounded by an arbitrary cap Start test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax 'test_super_vars.R:52:3' [skip] End test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax Start test: Counts for Div 293 at 250e3 not at odds with PBO 'test_super_vars.R:80:3' [skip] End test: Counts for Div 293 at 250e3 not at odds with PBO Start test: Imputed, reweighted sample file agrees with aggregates by no less than 1% 'test_super_vars.R:130:3' [skip] End test: Imputed, reweighted sample file agrees with aggregates by no less than 1% Start test: Error handling 'test_super_vars.R:170:3' [skip] End test: Error handling Start test: Corner cases 'test_super_vars.R:210:3' [skip] End test: Corner cases Start test: Warning with no WEIGHT. 'test_super_vars.R:240:3' [skip] End test: Warning with no WEIGHT. Start test: Marginals Rate 'test_super_vars.R:246:3' [skip] End test: Marginals Rate Start test: income_tax on individual sample file reflect historical collections 'test_total_receipts.R:15:3' [skip] End test: income_tax on individual sample file reflect historical collections Start test: unselect_ 'test_utils.R:5:3' [success] End test: unselect_ Start test: as.numeric_unless_warning 'test_utils.R:11:3' [success] 'test_utils.R:12:3' [success] End test: as.numeric_unless_warning Start test: anyIntersection 'test_utils.R:16:3' [success] 'test_utils.R:17:3' [success] 'test_utils.R:18:3' [success] End test: anyIntersection Start test: last_over_first 'test_utils.R:22:3' [success] 'test_utils.R:23:3' [success] 'test_utils.R:24:3' [success] End test: last_over_first Start test: coalesce 'test_utils.R:28:3' [success] End test: coalesce Start test: other utils 'test_utils.R:32:3' [success] 'test_utils.R:33:3' [success] End test: other utils Start test: prohibit_length0_vectors 'test_utils.R:37:3' [success] End test: prohibit_length0_vectors Start test: prohibit_vector_recyling 'test_utils.R:41:3' [success] 'test_utils.R:42:3' [success] 'test_utils.R:43:3' [success] 'test_utils.R:44:3' [success] 'test_utils.R:45:3' [success] End test: prohibit_vector_recyling Start test: qtrs_ahead 'test_utils.R:49:3' [success] 'test_utils.R:50:3' [success] 'test_utils.R:51:3' [success] End test: qtrs_ahead Start test: fast selector 'test_utils.R:57:3' [success] End test: fast selector Start test: koffset 'test_utils.R:62:3' [success] End test: koffset Start test: Switch 'test_utils.R:67:3' [success] 'test_utils.R:69:3' [success] End test: Switch Start test: getOption 'test_utils.R:74:3' [success] 'test_utils.R:75:3' [success] End test: getOption Start test: age2age_range 'test_utils.R:80:3' [success] 'test_utils.R:81:3' [success] 'test_utils.R:82:3' [success] 'test_utils.R:83:3' [success] 'test_utils.R:84:3' [success] 'test_utils.R:85:3' [success] End test: age2age_range Start test: hasntName 'test_utils.R:89:3' [success] 'test_utils.R:90:3' [success] End test: hasntName Start test: seq_qtr 'test_utils.R:95:3' [success] 'test_utils.R:98:3' [success] End test: seq_qtr Start test: Error handling 'test_validate_fys.R:10:3' [failure] 'test_validate_fys.R:14:3' [failure] 'test_validate_fys.R:19:3' [failure] 'test_validate_fys.R:22:3' [failure] End test: Error handling Start test: min or max years 'test_validate_fys.R:29:3' [success] 'test_validate_fys.R:30:3' [success] 'test_validate_fys.R:31:3' [success] 'test_validate_fys.R:32:3' [success] 'test_validate_fys.R:33:3' [success] End test: min or max years Start test: validation of other types 'test_validate_fys.R:38:3' [success] 'test_validate_fys.R:39:3' [success] 'test_validate_fys.R:42:3' [success] End test: validation of other types Start test: Validation memoization 'test_validate_fys.R:49:3' [success] 'test_validate_fys.R:51:3' [success] 'test_validate_fys.R:53:3' [success] 'test_validate_fys.R:56:3' [success] 'test_validate_fys.R:59:3' [success] 'test_validate_fys.R:61:3' [success] 'test_validate_fys.R:64:3' [success] End test: Validation memoization Start test: Errors 'test_validate_per.R:4:3' [success] 'test_validate_per.R:6:3' [success] 'test_validate_per.R:8:3' [success] 'test_validate_per.R:10:3' [success] 'test_validate_per.R:13:3' [success] End test: Errors Start test: Values 'test_validate_per.R:18:3' [success] 'test_validate_per.R:20:3' [success] 'test_validate_per.R:22:3' [success] 'test_validate_per.R:24:3' [success] 'test_validate_per.R:26:3' [success] End test: Values Start test: errors 'test_verify_date.R:4:3' [success] 'test_verify_date.R:7:3' [success] 'test_verify_date.R:10:3' [success] 'test_verify_date.R:13:3' [success] 'test_verify_date.R:15:3' [success] 'test_verify_date.R:18:3' [success] 'test_verify_date.R:20:3' [success] 'test_verify_date.R:23:3' [success] 'test_verify_date.R:26:3' [success] End test: errors Start test: values 'test_verify_date.R:33:3' [success] 'test_verify_date.R:34:3' [success] 'test_verify_date.R:38:3' [success] 'test_verify_date.R:42:3' [success] 'test_verify_date.R:44:3' [success] 'test_verify_date.R:48:3' [success] 'test_verify_date.R:52:3' [success] 'test_verify_date.R:56:3' [success] 'test_verify_date.R:60:3' [success] 'test_verify_date.R:64:3' [success] End test: values Start test: sprintf error 'test_verify_date.R:69:3' [success] End test: sprintf error Start test: Performance regression: cpi_inflator 'test_zbenchmark.R:4:3' [skip] End test: Performance regression: cpi_inflator Start test: Performance regression: wage_inflator 'test_zbenchmark.R:27:3' [skip] End test: Performance regression: wage_inflator Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 2025.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [42s/79s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > > all.pkgs <- c("testthat", "data.table", "magrittr", "withr") > > > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) { + + library(testthat) + library(grattan) + library(hutils) + library(data.table) + library(magrittr) + setDTthreads(1L) + if (identical(Sys.getenv("CIRCLECI"), "true")) { + test_check("grattan", + reporter = JunitReporter$new(file = "junit_result.xml")) + } else { + test_check("grattan", reporter = LocationReporter) + } + } Attaching package: 'hutils' The following object is masked from 'package:base': %notin% Attaching package: 'data.table' The following object is masked from 'package:hutils': %notin% The following object is masked from 'package:base': %notin% Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Start test: decode_age_range works 'test-decode_age_range.R:2:3' [success] End test: decode_age_range works Start test: income_tax2 works 'test-income_tax2.R:2:3' [success] 'test-income_tax2.R:3:3' [success] 'test-income_tax2.R:5:3' [success] End test: income_tax2 works Start test: dots ATO 'test-income_tax2.R:10:3' [skip] End test: dots ATO Start test: marginal_rate works 'test-marginal_rate.R:2:3' [skip] End test: marginal_rate works Start test: Data is up-to-date as documented 'test_0sysdata.R:5:3' [skip] End test: Data is up-to-date as documented Start test: pkgdown up-to-date 'test_0sysdata.R:42:3' [skip] End test: pkgdown up-to-date Start test: CG population inflator 'test_CG_inflators.R:4:3' [success] 'test_CG_inflators.R:5:3' [success] 'test_CG_inflators.R:6:3' [success] End test: CG population inflator Start test: LITO 'test_LITO.R:4:3' [success] 'test_LITO.R:5:3' [success] 'test_LITO.R:6:3' [success] End test: LITO Start test: LMITO 'test_LITO.R:11:3' [success] 'test_LITO.R:14:3' [success] End test: LMITO Start test: Offset basics 'test_Offset.R:6:3' [success] 'test_Offset.R:7:3' [success] 'test_Offset.R:8:3' [success] 'test_Offset.R:9:3' [success] 'test_Offset.R:12:3' [success] 'test_Offset.R:18:3' [success] 'test_Offset.R:30:3' [success] End test: Offset basics Start test: Offset internals 'test_Offset.R:36:3' [success] 'test_Offset.R:38:3' [success] End test: Offset internals Start test: set_offsets (with yr) 'test_Offset.R:44:3' [success] 'test_Offset.R:45:3' [success] 'test_Offset.R:46:3' [success] End test: set_offsets (with yr) Start test: multi-offsets 'test_Offset.R:57:3' [success] 'test_Offset.R:58:3' [success] End test: multi-offsets Start test: Validation of System 'test_System.R:5:3' [success] 'test_System.R:10:3' [success] 'test_System.R:11:3' [success] 'test_System.R:15:3' [success] 'test_System.R:19:3' [success] 'test_System.R:23:3' [success] 'test_System.R:27:3' [success] 'test_System.R:31:3' [success] End test: Validation of System Start test: Misc functions 'test_System.R:36:3' [success] 'test_System.R:37:3' [success] End test: Misc functions Start test: age_grouper delivers appropriate results 'test_age_grouper.R:4:3' [success] 'test_age_grouper.R:5:3' [success] 'test_age_grouper.R:7:3' [success] 'test_age_grouper.R:10:3' [success] End test: age_grouper delivers appropriate results Start test: Long age_grouper 'test_age_grouper.R:16:3' [success] 'test_age_grouper.R:19:3' [success] End test: Long age_grouper Start test: Alternate usage: years of birth 'test_age_grouper.R:23:3' [success] End test: Alternate usage: years of birth Start test: Long age grouper with NAs 'test_age_grouper.R:33:3' [success] 'test_age_grouper.R:36:3' [success] End test: Long age grouper with NAs Start test: Error handling 'test_age_pension_age.R:4:3' [success] 'test_age_pension_age.R:6:3' [success] 'test_age_pension_age.R:7:3' [success] 'test_age_pension_age.R:10:3' [success] 'test_age_pension_age.R:12:3' [success] End test: Error handling Start test: Women before 1995 'test_age_pension_age.R:23:3' [success] 'test_age_pension_age.R:26:3' [success] 'test_age_pension_age.R:29:3' [success] End test: Women before 1995 Start test: 65 'test_age_pension_age.R:35:3' [success] End test: 65 Start test: Future dates 'test_age_pension_age.R:44:3' [success] 'test_age_pension_age.R:46:3' [success] End test: Future dates Start test: aus pop fy age works 'test_aus_pop_fy_age.R:7:3' [success] 'test_aus_pop_fy_age.R:8:3' [success] 'test_aus_pop_fy_age.R:10:3' [success] 'test_aus_pop_fy_age.R:12:3' [success] End test: aus pop fy age works Start test: Returns correct values 'test_aus_pop_qtr.R:5:3' [success] 'test_aus_pop_qtr.R:6:3' [success] 'test_aus_pop_qtr.R:7:3' [success] 'test_aus_pop_qtr.R:11:3' [success] 'test_aus_pop_qtr.R:33:3' [success] End test: Returns correct values Start test: Multiple unordered 'test_aus_pop_qtr.R:53:3' [success] End test: Multiple unordered Start test: Rolls work as expected 'test_aus_pop_qtr.R:61:3' [success] End test: Rolls work as expected Start test: Error handling 'test_aus_pop_qtr.R:68:3' [success] 'test_aus_pop_qtr.R:69:3' [success] 'test_aus_pop_qtr.R:70:3' [success] 'test_aus_pop_qtr.R:71:3' [success] 'test_aus_pop_qtr.R:73:3' [success] 'test_aus_pop_qtr.R:74:3' [success] 'test_aus_pop_qtr.R:75:3' [success] 'test_aus_pop_qtr.R:76:3' [success] 'test_aus_pop_qtr.R:77:3' [success] 'test_aus_pop_qtr.R:79:3' [success] 'test_aus_pop_qtr.R:82:3' [success] End test: Error handling Start test: Error handling 'test_awote.R:4:3' [success] 'test_awote.R:5:3' [success] 'test_awote.R:6:3' [success] 'test_awote.R:7:3' [success] 'test_awote.R:8:3' [success] End test: Error handling Start test: Message 'test_awote.R:12:3' [success] End test: Message Start test: AWOTE fy 'test_awote.R:18:3' [success] 'test_awote.R:21:3' [success] End test: AWOTE fy Start test: AWOTE unsorted, issue #204 'test_awote.R:28:3' [success] 'test_awote.R:32:3' [success] 'test_awote.R:58:5' [success] 'test_awote.R:59:5' [success] End test: AWOTE unsorted, issue #204 Start test: Error handling 'test_bto.R:4:3' [success] End test: Error handling Start test: BTO returns known results 'test_bto.R:8:3' [success] 'test_bto.R:11:3' [success] 'test_bto.R:15:3' [success] End test: BTO returns known results Start test: check_TF 'test_check_TF.R:4:3' [success] 'test_check_TF.R:5:3' [success] 'test_check_TF.R:7:3' [success] 'test_check_TF.R:10:3' [success] 'test_check_TF.R:13:3' [success] End test: check_TF Start test: check_num1 'test_check_TF.R:18:3' [success] 'test_check_TF.R:19:3' [success] 'test_check_TF.R:22:3' [success] 'test_check_TF.R:26:3' [success] 'test_check_TF.R:30:3' [success] End test: check_num1 Start test: Error handling 'test_compare_avg_tax_rates.R:9:3' [success] 'test_compare_avg_tax_rates.R:16:3' [failure] 'test_compare_avg_tax_rates.R:19:3' [success] 'test_compare_avg_tax_rates.R:23:3' [success] 'test_compare_avg_tax_rates.R:26:3' [success] End test: Error handling Start test: data.frame 'test_compare_avg_tax_rates.R:39:3' [error] End test: data.frame Start test: Expected output 'test_compare_avg_tax_rates.R:49:3' [error] End test: Expected output Start test: ids that's not 'id' 'test_compare_avg_tax_rates.R:74:3' [error] End test: ids that's not 'id' Start test: Error handling 'test_financialfunctions.R:4:3' [success] End test: Error handling Start test: Matches Excel 'test_financialfunctions.R:8:3' [success] 'test_financialfunctions.R:9:3' [success] 'test_financialfunctions.R:10:3' [success] 'test_financialfunctions.R:11:3' [success] 'test_financialfunctions.R:12:3' [success] End test: Matches Excel Start test: Error handling 'test_generic_inflator.R:4:3' [success] End test: Error handling Start test: generic inflator doesn't fail! 'test_generic_inflator.R:12:3' [success] 'test_generic_inflator.R:13:3' [success] End test: generic inflator doesn't fail! Start test: generic inflator gives higher/lower for upper/lower 'test_generic_inflator.R:17:3' [success] 'test_generic_inflator.R:19:3' [success] 'test_generic_inflator.R:24:3' [success] End test: generic inflator gives higher/lower for upper/lower Start test: GNI returns known results 'test_gni.R:4:3' [success] 'test_gni.R:8:3' [success] End test: GNI returns known results Start test: Error handling 'test_gni.R:15:3' [skip] End test: Error handling Start test: GDP returns known results 'test_gni.R:22:3' [success] 'test_gni.R:26:3' [success] End test: GDP returns known results Start test: Error handling 'test_gni.R:34:3' [skip] End test: Error handling Start test: income_tax collections in 2003-04 match final budget outcome by 1% 'test_incomeTaxCollections.R:4:3' [skip] End test: income_tax collections in 2003-04 match final budget outcome by 1% Start test: income_tax collections in 2006-07 match final budget outcome by 1% 'test_incomeTaxCollections.R:18:3' [skip] End test: income_tax collections in 2006-07 match final budget outcome by 1% Start test: Projections match collections 'test_incomeTaxCollections.R:34:3' [skip] End test: Projections match collections Start test: No test 'test_incometax_dotsATO.R:4:3' [success] End test: No test Start test: sfa 'test_incometax_dotsATO_sfa.R:7:3' [success] 'test_incometax_dotsATO_sfa.R:8:3' [skip] End test: sfa Start test: income tax checks 'test_incometax_single.R:5:3' [skip] End test: income tax checks Start test: income_tax returns known results 'test_incometax_single.R:36:3' [success] 'test_incometax_single.R:37:3' [success] 'test_incometax_single.R:38:3' [success] 'test_incometax_single.R:40:3' [success] 'test_incometax_single.R:41:3' [success] 'test_incometax_single.R:42:3' [success] 'test_incometax_single.R:43:3' [success] 'test_incometax_single.R:45:3' [success] 'test_incometax_single.R:46:3' [success] 'test_incometax_single.R:48:3' [success] 'test_incometax_single.R:68:3' [success] 'test_incometax_single.R:76:3' [success] 'test_incometax_single.R:77:3' [success] 'test_incometax_single.R:78:3' [success] 'test_incometax_single.R:79:3' [success] 'test_incometax_single.R:80:3' [success] End test: income_tax returns known results Start test: income_tax is not NA for any years) 'test_incometax_single.R:94:3' [error] End test: income_tax is not NA for any years) Start test: income_tax is not NA for 2003-04 'test_incometax_single.R:98:3' [success] End test: income_tax is not NA for 2003-04 Start test: income_tax always returns the length of its arguments 'test_incometax_single.R:103:3' [error] End test: income_tax always returns the length of its arguments Start test: Budget Speech 2003-04 'test_incometax_single.R:117:3' [success] 'test_incometax_single.R:118:3' [success] 'test_incometax_single.R:119:3' [success] End test: Budget Speech 2003-04 Start test: Previous years (intel compiler trigger) 'test_incometax_single.R:123:3' [success] 'test_incometax_single.R:124:3' [success] 'test_incometax_single.R:125:3' [success] 'test_incometax_single.R:126:3' [success] 'test_incometax_single.R:127:3' [success] 'test_incometax_single.R:128:3' [success] 'test_incometax_single.R:129:3' [success] 'test_incometax_single.R:130:3' [success] 'test_incometax_single.R:131:3' [success] 'test_incometax_single.R:132:3' [success] 'test_incometax_single.R:133:3' [success] 'test_incometax_single.R:134:3' [success] 'test_incometax_single.R:135:3' [success] 'test_incometax_single.R:136:3' [success] 'test_incometax_single.R:137:3' [success] 'test_incometax_single.R:138:3' [success] 'test_incometax_single.R:139:3' [success] 'test_incometax_single.R:140:3' [success] 'test_incometax_single.R:141:3' [success] 'test_incometax_single.R:142:3' [success] 'test_incometax_single.R:143:3' [success] 'test_incometax_single.R:144:3' [success] 'test_incometax_single.R:145:3' [success] 'test_incometax_single.R:146:3' [success] 'test_incometax_single.R:147:3' [success] 'test_incometax_single.R:148:3' [success] 'test_incometax_single.R:149:3' [success] 'test_incometax_single.R:150:3' [success] 'test_incometax_single.R:151:3' [success] 'test_incometax_single.R:152:3' [success] 'test_incometax_single.R:153:3' [success] 'test_incometax_single.R:154:3' [success] 'test_incometax_single.R:155:3' [success] 'test_incometax_single.R:156:3' [success] 'test_incometax_single.R:157:3' [success] 'test_incometax_single.R:158:3' [success] 'test_incometax_single.R:159:3' [success] 'test_incometax_single.R:160:3' [success] 'test_incometax_single.R:161:3' [success] 'test_incometax_single.R:162:3' [success] 'test_incometax_single.R:163:3' [success] 'test_incometax_single.R:164:3' [success] 'test_incometax_single.R:165:3' [success] 'test_incometax_single.R:166:3' [success] 'test_incometax_single.R:167:3' [success] 'test_incometax_single.R:168:3' [success] 'test_incometax_single.R:169:3' [success] 'test_incometax_single.R:170:3' [success] 'test_incometax_single.R:172:3' [success] 'test_incometax_single.R:173:3' [success] 'test_incometax_single.R:174:3' [success] 'test_incometax_single.R:175:3' [success] 'test_incometax_single.R:176:3' [success] 'test_incometax_single.R:177:3' [success] 'test_incometax_single.R:178:3' [success] 'test_incometax_single.R:179:3' [success] 'test_incometax_single.R:180:3' [success] 'test_incometax_single.R:181:3' [success] 'test_incometax_single.R:182:3' [success] 'test_incometax_single.R:183:3' [success] 'test_incometax_single.R:184:3' [success] 'test_incometax_single.R:185:3' [success] 'test_incometax_single.R:186:3' [success] 'test_incometax_single.R:187:3' [success] 'test_incometax_single.R:188:3' [success] 'test_incometax_single.R:189:3' [success] 'test_incometax_single.R:190:3' [success] 'test_incometax_single.R:191:3' [success] 'test_incometax_single.R:192:3' [success] 'test_incometax_single.R:193:3' [success] 'test_incometax_single.R:194:3' [success] 'test_incometax_single.R:195:3' [success] 'test_incometax_single.R:196:3' [success] 'test_incometax_single.R:197:3' [success] 'test_incometax_single.R:198:3' [success] 'test_incometax_single.R:199:3' [success] 'test_incometax_single.R:200:3' [success] 'test_incometax_single.R:201:3' [success] 'test_incometax_single.R:202:3' [success] 'test_incometax_single.R:203:3' [success] 'test_incometax_single.R:204:3' [success] 'test_incometax_single.R:205:3' [success] 'test_incometax_single.R:206:3' [success] 'test_incometax_single.R:207:3' [success] 'test_incometax_single.R:208:3' [success] 'test_incometax_single.R:209:3' [success] 'test_incometax_single.R:210:3' [success] 'test_incometax_single.R:211:3' [success] 'test_incometax_single.R:212:3' [success] 'test_incometax_single.R:213:3' [success] 'test_incometax_single.R:214:3' [success] 'test_incometax_single.R:215:3' [success] 'test_incometax_single.R:216:3' [success] 'test_incometax_single.R:217:3' [success] 'test_incometax_single.R:218:3' [success] 'test_incometax_single.R:223:3' [success] 'test_incometax_single.R:224:3' [success] 'test_incometax_single.R:229:3' [success] End test: Previous years (intel compiler trigger) Start test: Previous years 'test_incometax_single.R:238:3' [success] 'test_incometax_single.R:247:3' [success] End test: Previous years Start test: Error handling 'test_inverse_average_rate.R:4:3' [success] End test: Error handling Start test: Average tax rates correctly inverted 'test_inverse_average_rate.R:9:3' [skip] End test: Average tax rates correctly inverted Start test: Average tax rates correctly inverted for 2003-04 'test_inverse_average_rate.R:27:3' [skip] End test: Average tax rates correctly inverted for 2003-04 Start test: Average tax rates correctly inverted for 2004-05 'test_inverse_average_rate.R:45:3' [skip] End test: Average tax rates correctly inverted for 2004-05 Start test: Average tax rates correctly inverted for 2005-06 'test_inverse_average_rate.R:63:3' [skip] End test: Average tax rates correctly inverted for 2005-06 Start test: Average tax rates correctly inverted for 2006-07 'test_inverse_average_rate.R:81:3' [skip] End test: Average tax rates correctly inverted for 2006-07 Start test: Average tax rates correctly inverted for 2007-08 'test_inverse_average_rate.R:99:3' [skip] End test: Average tax rates correctly inverted for 2007-08 Start test: Average tax rates correctly inverted for 2008-09 'test_inverse_average_rate.R:117:3' [skip] End test: Average tax rates correctly inverted for 2008-09 Start test: Average tax rates correctly inverted for 2009-10 'test_inverse_average_rate.R:135:3' [skip] End test: Average tax rates correctly inverted for 2009-10 Start test: Average tax rates correctly inverted for 2010-11 'test_inverse_average_rate.R:162:5' [success] End test: Average tax rates correctly inverted for 2010-11 Start test: Average tax rates correctly inverted for 2011-12 'test_inverse_average_rate.R:179:5' [success] End test: Average tax rates correctly inverted for 2011-12 Start test: Average tax rates correctly inverted for 2012-13 'test_inverse_average_rate.R:196:5' [success] End test: Average tax rates correctly inverted for 2012-13 Start test: Average tax rates correctly inverted for 2013-14 'test_inverse_average_rate.R:210:5' [success] End test: Average tax rates correctly inverted for 2013-14 Start test: Inverse single income matches. 'test_inverse_income.R:4:3' [skip] End test: Inverse single income matches. Start test: Infinities 'test_inverse_income.R:24:3' [success] 'test_inverse_income.R:25:3' [success] End test: Infinities Start test: Inverse income on zero 'test_inverse_income.R:29:3' [success] 'test_inverse_income.R:30:3' [success] 'test_inverse_income.R:31:3' [success] 'test_inverse_income.R:32:3' [success] 'test_inverse_income.R:33:3' [success] End test: Inverse income on zero Start test: Inverse long income matches. 'test_inverse_income.R:37:3' [skip] End test: Inverse long income matches. Start test: Previously failed long income matches. 'test_inverse_income.R:52:3' [skip] End test: Previously failed long income matches. Start test: Inverse income long on zero 'test_inverse_income.R:60:3' [skip] End test: Inverse income long on zero Start test: Other arguments passed to income_tax 'test_inverse_income.R:68:3' [success] End test: Other arguments passed to income_tax Start test: is.fy() returns TRUE on FYs 'test_isfy.R:10:3' [success] 'test_isfy.R:11:3' [success] 'test_isfy.R:12:3' [success] End test: is.fy() returns TRUE on FYs Start test: is.fy() returns FALSE on non-FYs 'test_isfy.R:16:3' [success] 'test_isfy.R:17:3' [success] 'test_isfy.R:18:3' [success] 'test_isfy.R:19:3' [success] 'test_isfy.R:20:3' [success] End test: is.fy() returns FALSE on non-FYs Start test: Other fy utils 'test_isfy.R:24:3' [success] 'test_isfy.R:26:3' [success] 'test_isfy.R:27:3' [success] 'test_isfy.R:29:3' [success] End test: Other fy utils Start test: all_fy 'test_isfy.R:33:3' [error] End test: all_fy Start test: is_fy2 'test_isfy.R:39:3' [error] End test: is_fy2 Start test: fy.year and yr2fy are identical 'test_isfy.R:44:3' [success] End test: fy.year and yr2fy are identical Start test: grattan.assume1901_2100 options 'test_isfy.R:49:3' [skip] End test: grattan.assume1901_2100 options Start test: range_fy 'test_isfy.R:59:3' [success] 'test_isfy.R:60:3' [success] End test: range_fy Start test: NA handling 'test_isfy.R:66:3' [success] 'test_isfy.R:68:3' [success] End test: NA handling Start test: qtr2fy error 'test_isfy.R:73:3' [success] End test: qtr2fy error Start test: medicare_levy error handling / deprecated 'test_medicare_levy.R:4:3' [success] 'test_medicare_levy.R:5:3' [success] End test: medicare_levy error handling / deprecated Start test: medicare_levy monotonic 'test_medicare_levy.R:10:3' [success] End test: medicare_levy monotonic Start test: medicare_levy returns known values 'test_medicare_levy.R:22:3' [success] 'test_medicare_levy.R:23:3' [success] 'test_medicare_levy.R:26:3' [success] 'test_medicare_levy.R:27:3' [success] 'test_medicare_levy.R:28:3' [success] 'test_medicare_levy.R:29:3' [success] 'test_medicare_levy.R:31:3' [success] 'test_medicare_levy.R:32:3' [success] 'test_medicare_levy.R:35:3' [success] 'test_medicare_levy.R:42:3' [success] 'test_medicare_levy.R:43:3' [success] 'test_medicare_levy.R:44:3' [success] 'test_medicare_levy.R:45:3' [success] 'test_medicare_levy.R:47:3' [success] 'test_medicare_levy.R:48:3' [success] 'test_medicare_levy.R:49:3' [success] 'test_medicare_levy.R:50:3' [success] 'test_medicare_levy.R:51:3' [success] 'test_medicare_levy.R:53:3' [success] 'test_medicare_levy.R:54:3' [success] 'test_medicare_levy.R:55:3' [success] 'test_medicare_levy.R:56:3' [success] 'test_medicare_levy.R:57:3' [success] End test: medicare_levy returns known values Start test: Medicare family income 2015-16 'test_medicare_levy.R:61:3' [skip] End test: Medicare family income 2015-16 Start test: Medicare with dependants 'test_medicare_levy.R:71:3' [skip] End test: Medicare with dependants Start test: Agrees with Master tax guide 'test_medicare_levy.R:85:3' [success] 'test_medicare_levy.R:86:3' [success] 'test_medicare_levy.R:87:3' [success] End test: Agrees with Master tax guide Start test: Medicare error handling 'test_medicare_levy.R:91:3' [success] 'test_medicare_levy.R:92:3' [success] End test: Medicare error handling Start test: CJ model 'test_modelCJ.R:2:3' [skip] End test: CJ model Start test: Error handling 'test_model_income_tax.R:4:3' [skip] End test: Error handling Start test: La plus ca meme la plus ca meme: la deluge 'test_model_income_tax.R:37:3' [skip] End test: La plus ca meme la plus ca meme: la deluge Start test: La plus ca meme la plus ca meme: medicare levy 'test_model_income_tax.R:58:3' [skip] End test: La plus ca meme la plus ca meme: medicare levy Start test: La plus ca meme la plus ca meme: LITO 'test_model_income_tax.R:78:3' [skip] End test: La plus ca meme la plus ca meme: LITO Start test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO 'test_model_income_tax.R:98:3' [skip] End test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO Start test: Increase in a rate results in more tax 'test_model_income_tax.R:115:3' [skip] End test: Increase in a rate results in more tax Start test: Medicare warnings 'test_model_income_tax.R:138:3' [skip] End test: Medicare warnings Start test: Medicare options 'test_model_income_tax.R:245:3' [skip] End test: Medicare options Start test: Medicare families 'test_model_income_tax.R:324:3' [skip] End test: Medicare families Start test: SAPTO modelled 'test_model_income_tax.R:360:3' [skip] End test: SAPTO modelled Start test: LITO 'test_model_income_tax.R:436:3' [skip] End test: LITO Start test: Elasticity of taxable income 'test_model_income_tax.R:458:3' [skip] End test: Elasticity of taxable income Start test: Elasticity 0 vs 1 'test_model_income_tax.R:542:3' [skip] End test: Elasticity 0 vs 1 Start test: Lamington 'test_model_income_tax.R:581:3' [skip] End test: Lamington Start test: Clear columns 'test_model_income_tax.R:623:3' [skip] End test: Clear columns Start test: sample_file.int 'test_model_income_tax.R:632:3' [skip] End test: sample_file.int Start test: Keyed data.table 'test_model_income_tax.R:643:3' [skip] End test: Keyed data.table Start test: Budget2018 'test_model_income_tax.R:654:3' [skip] End test: Budget2018 Start test: CGT discount 'test_model_income_tax.R:688:3' [skip] End test: CGT discount Start test: CGT (errors) 'test_model_income_tax.R:761:3' [skip] End test: CGT (errors) Start test: SAPTO parameters should not go out of range (causing NAs) 'test_model_income_tax.R:774:3' [skip] End test: SAPTO parameters should not go out of range (causing NAs) Start test: Issue #176 'test_model_income_tax.R:786:3' [skip] End test: Issue #176 Start test: SAPTO modelling done for Age of entitlement report 'test_model_income_tax.R:794:3' [skip] End test: SAPTO modelling done for Age of entitlement report Start test: Error handling 'test_mutate_ntile.R:7:3' [success] 'test_mutate_ntile.R:10:3' [success] 'test_mutate_ntile.R:13:3' [success] 'test_mutate_ntile.R:18:3' [success] 'test_mutate_ntile.R:21:3' [success] 'test_mutate_ntile.R:25:3' [success] 'test_mutate_ntile.R:29:3' [success] 'test_mutate_ntile.R:33:3' [success] 'test_mutate_ntile.R:37:3' [success] 'test_mutate_ntile.R:42:3' [success] 'test_mutate_ntile.R:45:3' [success] 'test_mutate_ntile.R:49:3' [success] End test: Error handling Start test: next_fy plus and minus 'test_next_fy.R:10:3' [success] 'test_next_fy.R:11:3' [success] 'test_next_fy.R:13:3' [success] 'test_next_fy.R:14:3' [success] End test: next_fy plus and minus Start test: prev_fy 'test_next_fy.R:18:3' [success] 'test_next_fy.R:19:3' [success] End test: prev_fy Start test: Error handling 'test_progressivity.R:4:3' [success] 'test_progressivity.R:5:3' [success] End test: Error handling Start test: Simple examples 'test_progressivity.R:11:3' [success] 'test_progressivity.R:12:3' [success] 'test_progressivity.R:13:3' [success] End test: Simple examples Start test: project using australian population 'test_project_aus_pop.R:17:3' [skip] End test: project using australian population Start test: do_rN 'test_rN.R:2:3' [success] 'test_rN.R:3:3' [success] 'test_rN.R:4:3' [success] 'test_rN.R:6:3' [success] 'test_rN.R:7:3' [success] End test: do_rN Start test: Value of revenue_foregone 'test_revenue_foregone.R:9:3' [success] 'test_revenue_foregone.R:10:3' [success] 'test_revenue_foregone.R:12:3' [success] 'test_revenue_foregone.R:13:3' [success] 'test_revenue_foregone.R:16:3' [success] 'test_revenue_foregone.R:17:3' [success] 'test_revenue_foregone.R:20:3' [success] 'test_revenue_foregone.R:21:3' [success] 'test_revenue_foregone.R:24:3' [success] End test: Value of revenue_foregone Start test: latex output produces LaTeX escaped $ 'test_revenue_foregone.R:41:7' [success] End test: latex output produces LaTeX escaped $ Start test: sapto 'test_sapto.R:2:3' [success] 'test_sapto.R:3:3' [success] 'test_sapto.R:5:3' [success] End test: sapto Start test: valid sapto 'test_sapto.R:9:3' [success] 'test_sapto.R:10:3' [success] End test: valid sapto Start test: Example in explanatory memo 'test_small_business_tax_offset.R:4:3' [success] End test: Example in explanatory memo Start test: Always zero for fy_year 'test_small_business_tax_offset.R:15:3' [success] 'test_small_business_tax_offset.R:21:3' [success] 'test_small_business_tax_offset.R:27:3' [success] End test: Always zero for fy_year Start test: Error handling 'test_small_business_tax_offset.R:36:3' [success] 'test_small_business_tax_offset.R:42:3' [success] 'test_small_business_tax_offset.R:49:3' [success] 'test_small_business_tax_offset.R:56:3' [success] End test: Error handling Start test: Warnings with dotsATO 'test_small_business_tax_offset.R:67:3' [skip] End test: Warnings with dotsATO Start test: Results with .dots.ATO 'test_small_business_tax_offset.R:96:3' [skip] End test: Results with .dots.ATO Start test: pension 'test_standardize_payment_names.R:4:3' [success] 'test_standardize_payment_names.R:6:3' [success] End test: pension Start test: stop_via 'test_stop.R:4:3' [success] 'test_stop.R:5:3' [success] 'test_stop.R:6:3' [success] End test: stop_via Start test: Error handling 'test_super_vars.R:4:3' [success] End test: Error handling Start test: Div293 tax is bounded by cap @ 25k 'test_super_vars.R:10:3' [skip] End test: Div293 tax is bounded by cap @ 25k Start test: Div293 tax is bounded by cap @ 20k 'test_super_vars.R:17:3' [skip] End test: Div293 tax is bounded by cap @ 20k Start test: Div293 tax is bounded by cap @ 30k 'test_super_vars.R:23:3' [skip] End test: Div293 tax is bounded by cap @ 30k Start test: Div293 tax is bounded by an arbitrary cap 'test_super_vars.R:32:3' [skip] End test: Div293 tax is bounded by an arbitrary cap Start test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax 'test_super_vars.R:52:3' [skip] End test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax Start test: Counts for Div 293 at 250e3 not at odds with PBO 'test_super_vars.R:80:3' [skip] End test: Counts for Div 293 at 250e3 not at odds with PBO Start test: Imputed, reweighted sample file agrees with aggregates by no less than 1% 'test_super_vars.R:130:3' [skip] End test: Imputed, reweighted sample file agrees with aggregates by no less than 1% Start test: Error handling 'test_super_vars.R:170:3' [skip] End test: Error handling Start test: Corner cases 'test_super_vars.R:210:3' [skip] End test: Corner cases Start test: Warning with no WEIGHT. 'test_super_vars.R:240:3' [skip] End test: Warning with no WEIGHT. Start test: Marginals Rate 'test_super_vars.R:246:3' [skip] End test: Marginals Rate Start test: income_tax on individual sample file reflect historical collections 'test_total_receipts.R:15:3' [skip] End test: income_tax on individual sample file reflect historical collections Start test: unselect_ 'test_utils.R:5:3' [success] End test: unselect_ Start test: as.numeric_unless_warning 'test_utils.R:11:3' [success] 'test_utils.R:12:3' [success] End test: as.numeric_unless_warning Start test: anyIntersection 'test_utils.R:16:3' [success] 'test_utils.R:17:3' [success] 'test_utils.R:18:3' [success] End test: anyIntersection Start test: last_over_first 'test_utils.R:22:3' [success] 'test_utils.R:23:3' [success] 'test_utils.R:24:3' [success] End test: last_over_first Start test: coalesce 'test_utils.R:28:3' [success] End test: coalesce Start test: other utils 'test_utils.R:32:3' [success] 'test_utils.R:33:3' [success] End test: other utils Start test: prohibit_length0_vectors 'test_utils.R:37:3' [success] End test: prohibit_length0_vectors Start test: prohibit_vector_recyling 'test_utils.R:41:3' [success] 'test_utils.R:42:3' [success] 'test_utils.R:43:3' [success] 'test_utils.R:44:3' [success] 'test_utils.R:45:3' [success] End test: prohibit_vector_recyling Start test: qtrs_ahead 'test_utils.R:49:3' [success] 'test_utils.R:50:3' [success] 'test_utils.R:51:3' [success] End test: qtrs_ahead Start test: fast selector 'test_utils.R:57:3' [success] End test: fast selector Start test: koffset 'test_utils.R:62:3' [success] End test: koffset Start test: Switch 'test_utils.R:67:3' [success] 'test_utils.R:69:3' [success] End test: Switch Start test: getOption 'test_utils.R:74:3' [success] 'test_utils.R:75:3' [success] End test: getOption Start test: age2age_range 'test_utils.R:80:3' [success] 'test_utils.R:81:3' [success] 'test_utils.R:82:3' [success] 'test_utils.R:83:3' [success] 'test_utils.R:84:3' [success] 'test_utils.R:85:3' [success] End test: age2age_range Start test: hasntName 'test_utils.R:89:3' [success] 'test_utils.R:90:3' [success] End test: hasntName Start test: seq_qtr 'test_utils.R:95:3' [success] 'test_utils.R:98:3' [success] End test: seq_qtr Start test: Error handling 'test_validate_fys.R:10:3' [failure] 'test_validate_fys.R:14:3' [failure] 'test_validate_fys.R:19:3' [failure] 'test_validate_fys.R:22:3' [failure] End test: Error handling Start test: min or max years 'test_validate_fys.R:29:3' [success] 'test_validate_fys.R:30:3' [success] 'test_validate_fys.R:31:3' [success] 'test_validate_fys.R:32:3' [success] 'test_validate_fys.R:33:3' [success] End test: min or max years Start test: validation of other types 'test_validate_fys.R:38:3' [success] 'test_validate_fys.R:39:3' [success] 'test_validate_fys.R:42:3' [success] End test: validation of other types Start test: Validation memoization 'test_validate_fys.R:49:3' [success] 'test_validate_fys.R:51:3' [success] 'test_validate_fys.R:53:3' [success] 'test_validate_fys.R:56:3' [success] 'test_validate_fys.R:59:3' [success] 'test_validate_fys.R:61:3' [success] 'test_validate_fys.R:64:3' [success] End test: Validation memoization Start test: Errors 'test_validate_per.R:4:3' [success] 'test_validate_per.R:6:3' [success] 'test_validate_per.R:8:3' [success] 'test_validate_per.R:10:3' [success] 'test_validate_per.R:13:3' [success] End test: Errors Start test: Values 'test_validate_per.R:18:3' [success] 'test_validate_per.R:20:3' [success] 'test_validate_per.R:22:3' [success] 'test_validate_per.R:24:3' [success] 'test_validate_per.R:26:3' [success] End test: Values Start test: errors 'test_verify_date.R:4:3' [success] 'test_verify_date.R:7:3' [success] 'test_verify_date.R:10:3' [success] 'test_verify_date.R:13:3' [success] 'test_verify_date.R:15:3' [success] 'test_verify_date.R:18:3' [success] 'test_verify_date.R:20:3' [success] 'test_verify_date.R:23:3' [success] 'test_verify_date.R:26:3' [success] End test: errors Start test: values 'test_verify_date.R:33:3' [success] 'test_verify_date.R:34:3' [success] 'test_verify_date.R:38:3' [success] 'test_verify_date.R:42:3' [success] 'test_verify_date.R:44:3' [success] 'test_verify_date.R:48:3' [success] 'test_verify_date.R:52:3' [success] 'test_verify_date.R:56:3' [success] 'test_verify_date.R:60:3' [success] 'test_verify_date.R:64:3' [success] End test: values Start test: sprintf error 'test_verify_date.R:69:3' [success] End test: sprintf error Start test: Performance regression: cpi_inflator 'test_zbenchmark.R:4:3' [skip] End test: Performance regression: cpi_inflator Start test: Performance regression: wage_inflator 'test_zbenchmark.R:27:3' [skip] End test: Performance regression: wage_inflator Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 2025.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [40s/71s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > > all.pkgs <- c("testthat", "data.table", "magrittr", "withr") > > > if (all(vapply(all.pkgs, requireNamespace, logical(1L), quietly = TRUE))) { + + library(testthat) + library(grattan) + library(hutils) + library(data.table) + library(magrittr) + setDTthreads(1L) + if (identical(Sys.getenv("CIRCLECI"), "true")) { + test_check("grattan", + reporter = JunitReporter$new(file = "junit_result.xml")) + } else { + test_check("grattan", reporter = LocationReporter) + } + } Attaching package: 'hutils' The following object is masked from 'package:base': %notin% Attaching package: 'data.table' The following object is masked from 'package:hutils': %notin% The following object is masked from 'package:base': %notin% Attaching package: 'magrittr' The following objects are masked from 'package:testthat': equals, is_less_than, not Start test: decode_age_range works 'test-decode_age_range.R:2:3' [success] End test: decode_age_range works Start test: income_tax2 works 'test-income_tax2.R:2:3' [success] 'test-income_tax2.R:3:3' [success] 'test-income_tax2.R:5:3' [success] End test: income_tax2 works Start test: dots ATO 'test-income_tax2.R:10:3' [skip] End test: dots ATO Start test: marginal_rate works 'test-marginal_rate.R:2:3' [skip] End test: marginal_rate works Start test: Data is up-to-date as documented 'test_0sysdata.R:5:3' [skip] End test: Data is up-to-date as documented Start test: pkgdown up-to-date 'test_0sysdata.R:42:3' [skip] End test: pkgdown up-to-date Start test: CG population inflator 'test_CG_inflators.R:4:3' [success] 'test_CG_inflators.R:5:3' [success] 'test_CG_inflators.R:6:3' [success] End test: CG population inflator Start test: LITO 'test_LITO.R:4:3' [success] 'test_LITO.R:5:3' [success] 'test_LITO.R:6:3' [success] End test: LITO Start test: LMITO 'test_LITO.R:11:3' [success] 'test_LITO.R:14:3' [success] End test: LMITO Start test: Offset basics 'test_Offset.R:6:3' [success] 'test_Offset.R:7:3' [success] 'test_Offset.R:8:3' [success] 'test_Offset.R:9:3' [success] 'test_Offset.R:12:3' [success] 'test_Offset.R:18:3' [success] 'test_Offset.R:30:3' [success] End test: Offset basics Start test: Offset internals 'test_Offset.R:36:3' [success] 'test_Offset.R:38:3' [success] End test: Offset internals Start test: set_offsets (with yr) 'test_Offset.R:44:3' [success] 'test_Offset.R:45:3' [success] 'test_Offset.R:46:3' [success] End test: set_offsets (with yr) Start test: multi-offsets 'test_Offset.R:57:3' [success] 'test_Offset.R:58:3' [success] End test: multi-offsets Start test: Validation of System 'test_System.R:5:3' [success] 'test_System.R:10:3' [success] 'test_System.R:11:3' [success] 'test_System.R:15:3' [success] 'test_System.R:19:3' [success] 'test_System.R:23:3' [success] 'test_System.R:27:3' [success] 'test_System.R:31:3' [success] End test: Validation of System Start test: Misc functions 'test_System.R:36:3' [success] 'test_System.R:37:3' [success] End test: Misc functions Start test: age_grouper delivers appropriate results 'test_age_grouper.R:4:3' [success] 'test_age_grouper.R:5:3' [success] 'test_age_grouper.R:7:3' [success] 'test_age_grouper.R:10:3' [success] End test: age_grouper delivers appropriate results Start test: Long age_grouper 'test_age_grouper.R:16:3' [success] 'test_age_grouper.R:19:3' [success] End test: Long age_grouper Start test: Alternate usage: years of birth 'test_age_grouper.R:23:3' [success] End test: Alternate usage: years of birth Start test: Long age grouper with NAs 'test_age_grouper.R:33:3' [success] 'test_age_grouper.R:36:3' [success] End test: Long age grouper with NAs Start test: Error handling 'test_age_pension_age.R:4:3' [success] 'test_age_pension_age.R:6:3' [success] 'test_age_pension_age.R:7:3' [success] 'test_age_pension_age.R:10:3' [success] 'test_age_pension_age.R:12:3' [success] End test: Error handling Start test: Women before 1995 'test_age_pension_age.R:23:3' [success] 'test_age_pension_age.R:26:3' [success] 'test_age_pension_age.R:29:3' [success] End test: Women before 1995 Start test: 65 'test_age_pension_age.R:35:3' [success] End test: 65 Start test: Future dates 'test_age_pension_age.R:44:3' [success] 'test_age_pension_age.R:46:3' [success] End test: Future dates Start test: aus pop fy age works 'test_aus_pop_fy_age.R:7:3' [success] 'test_aus_pop_fy_age.R:8:3' [success] 'test_aus_pop_fy_age.R:10:3' [success] 'test_aus_pop_fy_age.R:12:3' [success] End test: aus pop fy age works Start test: Returns correct values 'test_aus_pop_qtr.R:5:3' [success] 'test_aus_pop_qtr.R:6:3' [success] 'test_aus_pop_qtr.R:7:3' [success] 'test_aus_pop_qtr.R:11:3' [success] 'test_aus_pop_qtr.R:33:3' [success] End test: Returns correct values Start test: Multiple unordered 'test_aus_pop_qtr.R:53:3' [success] End test: Multiple unordered Start test: Rolls work as expected 'test_aus_pop_qtr.R:61:3' [success] End test: Rolls work as expected Start test: Error handling 'test_aus_pop_qtr.R:68:3' [success] 'test_aus_pop_qtr.R:69:3' [success] 'test_aus_pop_qtr.R:70:3' [success] 'test_aus_pop_qtr.R:71:3' [success] 'test_aus_pop_qtr.R:73:3' [success] 'test_aus_pop_qtr.R:74:3' [success] 'test_aus_pop_qtr.R:75:3' [success] 'test_aus_pop_qtr.R:76:3' [success] 'test_aus_pop_qtr.R:77:3' [success] 'test_aus_pop_qtr.R:79:3' [success] 'test_aus_pop_qtr.R:82:3' [success] End test: Error handling Start test: Error handling 'test_awote.R:4:3' [success] 'test_awote.R:5:3' [success] 'test_awote.R:6:3' [success] 'test_awote.R:7:3' [success] 'test_awote.R:8:3' [success] End test: Error handling Start test: Message 'test_awote.R:12:3' [success] End test: Message Start test: AWOTE fy 'test_awote.R:18:3' [success] 'test_awote.R:21:3' [success] End test: AWOTE fy Start test: AWOTE unsorted, issue #204 'test_awote.R:28:3' [success] 'test_awote.R:32:3' [success] 'test_awote.R:58:5' [success] 'test_awote.R:59:5' [success] End test: AWOTE unsorted, issue #204 Start test: Error handling 'test_bto.R:4:3' [success] End test: Error handling Start test: BTO returns known results 'test_bto.R:8:3' [success] 'test_bto.R:11:3' [success] 'test_bto.R:15:3' [success] End test: BTO returns known results Start test: check_TF 'test_check_TF.R:4:3' [success] 'test_check_TF.R:5:3' [success] 'test_check_TF.R:7:3' [success] 'test_check_TF.R:10:3' [success] 'test_check_TF.R:13:3' [success] End test: check_TF Start test: check_num1 'test_check_TF.R:18:3' [success] 'test_check_TF.R:19:3' [success] 'test_check_TF.R:22:3' [success] 'test_check_TF.R:26:3' [success] 'test_check_TF.R:30:3' [success] End test: check_num1 Start test: Error handling 'test_compare_avg_tax_rates.R:9:3' [success] 'test_compare_avg_tax_rates.R:16:3' [failure] 'test_compare_avg_tax_rates.R:19:3' [success] 'test_compare_avg_tax_rates.R:23:3' [success] 'test_compare_avg_tax_rates.R:26:3' [success] End test: Error handling Start test: data.frame 'test_compare_avg_tax_rates.R:39:3' [error] End test: data.frame Start test: Expected output 'test_compare_avg_tax_rates.R:49:3' [error] End test: Expected output Start test: ids that's not 'id' 'test_compare_avg_tax_rates.R:74:3' [error] End test: ids that's not 'id' Start test: Error handling 'test_financialfunctions.R:4:3' [success] End test: Error handling Start test: Matches Excel 'test_financialfunctions.R:8:3' [success] 'test_financialfunctions.R:9:3' [success] 'test_financialfunctions.R:10:3' [success] 'test_financialfunctions.R:11:3' [success] 'test_financialfunctions.R:12:3' [success] End test: Matches Excel Start test: Error handling 'test_generic_inflator.R:4:3' [success] End test: Error handling Start test: generic inflator doesn't fail! 'test_generic_inflator.R:12:3' [success] 'test_generic_inflator.R:13:3' [success] End test: generic inflator doesn't fail! Start test: generic inflator gives higher/lower for upper/lower 'test_generic_inflator.R:17:3' [success] 'test_generic_inflator.R:19:3' [success] 'test_generic_inflator.R:24:3' [success] End test: generic inflator gives higher/lower for upper/lower Start test: GNI returns known results 'test_gni.R:4:3' [success] 'test_gni.R:8:3' [success] End test: GNI returns known results Start test: Error handling 'test_gni.R:15:3' [skip] End test: Error handling Start test: GDP returns known results 'test_gni.R:22:3' [success] 'test_gni.R:26:3' [success] End test: GDP returns known results Start test: Error handling 'test_gni.R:34:3' [skip] End test: Error handling Start test: income_tax collections in 2003-04 match final budget outcome by 1% 'test_incomeTaxCollections.R:4:3' [skip] End test: income_tax collections in 2003-04 match final budget outcome by 1% Start test: income_tax collections in 2006-07 match final budget outcome by 1% 'test_incomeTaxCollections.R:18:3' [skip] End test: income_tax collections in 2006-07 match final budget outcome by 1% Start test: Projections match collections 'test_incomeTaxCollections.R:34:3' [skip] End test: Projections match collections Start test: No test 'test_incometax_dotsATO.R:4:3' [success] End test: No test Start test: sfa 'test_incometax_dotsATO_sfa.R:7:3' [success] 'test_incometax_dotsATO_sfa.R:8:3' [skip] End test: sfa Start test: income tax checks 'test_incometax_single.R:5:3' [skip] End test: income tax checks Start test: income_tax returns known results 'test_incometax_single.R:36:3' [success] 'test_incometax_single.R:37:3' [success] 'test_incometax_single.R:38:3' [success] 'test_incometax_single.R:40:3' [success] 'test_incometax_single.R:41:3' [success] 'test_incometax_single.R:42:3' [success] 'test_incometax_single.R:43:3' [success] 'test_incometax_single.R:45:3' [success] 'test_incometax_single.R:46:3' [success] 'test_incometax_single.R:48:3' [success] 'test_incometax_single.R:68:3' [success] 'test_incometax_single.R:76:3' [success] 'test_incometax_single.R:77:3' [success] 'test_incometax_single.R:78:3' [success] 'test_incometax_single.R:79:3' [success] 'test_incometax_single.R:80:3' [success] End test: income_tax returns known results Start test: income_tax is not NA for any years) 'test_incometax_single.R:94:3' [error] End test: income_tax is not NA for any years) Start test: income_tax is not NA for 2003-04 'test_incometax_single.R:98:3' [success] End test: income_tax is not NA for 2003-04 Start test: income_tax always returns the length of its arguments 'test_incometax_single.R:103:3' [error] End test: income_tax always returns the length of its arguments Start test: Budget Speech 2003-04 'test_incometax_single.R:117:3' [success] 'test_incometax_single.R:118:3' [success] 'test_incometax_single.R:119:3' [success] End test: Budget Speech 2003-04 Start test: Previous years (intel compiler trigger) 'test_incometax_single.R:123:3' [success] 'test_incometax_single.R:124:3' [success] 'test_incometax_single.R:125:3' [success] 'test_incometax_single.R:126:3' [success] 'test_incometax_single.R:127:3' [success] 'test_incometax_single.R:128:3' [success] 'test_incometax_single.R:129:3' [success] 'test_incometax_single.R:130:3' [success] 'test_incometax_single.R:131:3' [success] 'test_incometax_single.R:132:3' [success] 'test_incometax_single.R:133:3' [success] 'test_incometax_single.R:134:3' [success] 'test_incometax_single.R:135:3' [success] 'test_incometax_single.R:136:3' [success] 'test_incometax_single.R:137:3' [success] 'test_incometax_single.R:138:3' [success] 'test_incometax_single.R:139:3' [success] 'test_incometax_single.R:140:3' [success] 'test_incometax_single.R:141:3' [success] 'test_incometax_single.R:142:3' [success] 'test_incometax_single.R:143:3' [success] 'test_incometax_single.R:144:3' [success] 'test_incometax_single.R:145:3' [success] 'test_incometax_single.R:146:3' [success] 'test_incometax_single.R:147:3' [success] 'test_incometax_single.R:148:3' [success] 'test_incometax_single.R:149:3' [success] 'test_incometax_single.R:150:3' [success] 'test_incometax_single.R:151:3' [success] 'test_incometax_single.R:152:3' [success] 'test_incometax_single.R:153:3' [success] 'test_incometax_single.R:154:3' [success] 'test_incometax_single.R:155:3' [success] 'test_incometax_single.R:156:3' [success] 'test_incometax_single.R:157:3' [success] 'test_incometax_single.R:158:3' [success] 'test_incometax_single.R:159:3' [success] 'test_incometax_single.R:160:3' [success] 'test_incometax_single.R:161:3' [success] 'test_incometax_single.R:162:3' [success] 'test_incometax_single.R:163:3' [success] 'test_incometax_single.R:164:3' [success] 'test_incometax_single.R:165:3' [success] 'test_incometax_single.R:166:3' [success] 'test_incometax_single.R:167:3' [success] 'test_incometax_single.R:168:3' [success] 'test_incometax_single.R:169:3' [success] 'test_incometax_single.R:170:3' [success] 'test_incometax_single.R:172:3' [success] 'test_incometax_single.R:173:3' [success] 'test_incometax_single.R:174:3' [success] 'test_incometax_single.R:175:3' [success] 'test_incometax_single.R:176:3' [success] 'test_incometax_single.R:177:3' [success] 'test_incometax_single.R:178:3' [success] 'test_incometax_single.R:179:3' [success] 'test_incometax_single.R:180:3' [success] 'test_incometax_single.R:181:3' [success] 'test_incometax_single.R:182:3' [success] 'test_incometax_single.R:183:3' [success] 'test_incometax_single.R:184:3' [success] 'test_incometax_single.R:185:3' [success] 'test_incometax_single.R:186:3' [success] 'test_incometax_single.R:187:3' [success] 'test_incometax_single.R:188:3' [success] 'test_incometax_single.R:189:3' [success] 'test_incometax_single.R:190:3' [success] 'test_incometax_single.R:191:3' [success] 'test_incometax_single.R:192:3' [success] 'test_incometax_single.R:193:3' [success] 'test_incometax_single.R:194:3' [success] 'test_incometax_single.R:195:3' [success] 'test_incometax_single.R:196:3' [success] 'test_incometax_single.R:197:3' [success] 'test_incometax_single.R:198:3' [success] 'test_incometax_single.R:199:3' [success] 'test_incometax_single.R:200:3' [success] 'test_incometax_single.R:201:3' [success] 'test_incometax_single.R:202:3' [success] 'test_incometax_single.R:203:3' [success] 'test_incometax_single.R:204:3' [success] 'test_incometax_single.R:205:3' [success] 'test_incometax_single.R:206:3' [success] 'test_incometax_single.R:207:3' [success] 'test_incometax_single.R:208:3' [success] 'test_incometax_single.R:209:3' [success] 'test_incometax_single.R:210:3' [success] 'test_incometax_single.R:211:3' [success] 'test_incometax_single.R:212:3' [success] 'test_incometax_single.R:213:3' [success] 'test_incometax_single.R:214:3' [success] 'test_incometax_single.R:215:3' [success] 'test_incometax_single.R:216:3' [success] 'test_incometax_single.R:217:3' [success] 'test_incometax_single.R:218:3' [success] 'test_incometax_single.R:223:3' [success] 'test_incometax_single.R:224:3' [success] 'test_incometax_single.R:229:3' [success] End test: Previous years (intel compiler trigger) Start test: Previous years 'test_incometax_single.R:238:3' [success] 'test_incometax_single.R:247:3' [success] End test: Previous years Start test: Error handling 'test_inverse_average_rate.R:4:3' [success] End test: Error handling Start test: Average tax rates correctly inverted 'test_inverse_average_rate.R:9:3' [skip] End test: Average tax rates correctly inverted Start test: Average tax rates correctly inverted for 2003-04 'test_inverse_average_rate.R:27:3' [skip] End test: Average tax rates correctly inverted for 2003-04 Start test: Average tax rates correctly inverted for 2004-05 'test_inverse_average_rate.R:45:3' [skip] End test: Average tax rates correctly inverted for 2004-05 Start test: Average tax rates correctly inverted for 2005-06 'test_inverse_average_rate.R:63:3' [skip] End test: Average tax rates correctly inverted for 2005-06 Start test: Average tax rates correctly inverted for 2006-07 'test_inverse_average_rate.R:81:3' [skip] End test: Average tax rates correctly inverted for 2006-07 Start test: Average tax rates correctly inverted for 2007-08 'test_inverse_average_rate.R:99:3' [skip] End test: Average tax rates correctly inverted for 2007-08 Start test: Average tax rates correctly inverted for 2008-09 'test_inverse_average_rate.R:117:3' [skip] End test: Average tax rates correctly inverted for 2008-09 Start test: Average tax rates correctly inverted for 2009-10 'test_inverse_average_rate.R:135:3' [skip] End test: Average tax rates correctly inverted for 2009-10 Start test: Average tax rates correctly inverted for 2010-11 'test_inverse_average_rate.R:159:5' [success] End test: Average tax rates correctly inverted for 2010-11 Start test: Average tax rates correctly inverted for 2011-12 'test_inverse_average_rate.R:179:5' [success] End test: Average tax rates correctly inverted for 2011-12 Start test: Average tax rates correctly inverted for 2012-13 'test_inverse_average_rate.R:196:5' [success] End test: Average tax rates correctly inverted for 2012-13 Start test: Average tax rates correctly inverted for 2013-14 'test_inverse_average_rate.R:213:5' [success] End test: Average tax rates correctly inverted for 2013-14 Start test: Inverse single income matches. 'test_inverse_income.R:4:3' [skip] End test: Inverse single income matches. Start test: Infinities 'test_inverse_income.R:24:3' [success] 'test_inverse_income.R:25:3' [success] End test: Infinities Start test: Inverse income on zero 'test_inverse_income.R:29:3' [success] 'test_inverse_income.R:30:3' [success] 'test_inverse_income.R:31:3' [success] 'test_inverse_income.R:32:3' [success] 'test_inverse_income.R:33:3' [success] End test: Inverse income on zero Start test: Inverse long income matches. 'test_inverse_income.R:37:3' [skip] End test: Inverse long income matches. Start test: Previously failed long income matches. 'test_inverse_income.R:52:3' [skip] End test: Previously failed long income matches. Start test: Inverse income long on zero 'test_inverse_income.R:60:3' [skip] End test: Inverse income long on zero Start test: Other arguments passed to income_tax 'test_inverse_income.R:68:3' [success] End test: Other arguments passed to income_tax Start test: is.fy() returns TRUE on FYs 'test_isfy.R:10:3' [success] 'test_isfy.R:11:3' [success] 'test_isfy.R:12:3' [success] End test: is.fy() returns TRUE on FYs Start test: is.fy() returns FALSE on non-FYs 'test_isfy.R:16:3' [success] 'test_isfy.R:17:3' [success] 'test_isfy.R:18:3' [success] 'test_isfy.R:19:3' [success] 'test_isfy.R:20:3' [success] End test: is.fy() returns FALSE on non-FYs Start test: Other fy utils 'test_isfy.R:24:3' [success] 'test_isfy.R:26:3' [success] 'test_isfy.R:27:3' [success] 'test_isfy.R:29:3' [success] End test: Other fy utils Start test: all_fy 'test_isfy.R:33:3' [error] End test: all_fy Start test: is_fy2 'test_isfy.R:39:3' [error] End test: is_fy2 Start test: fy.year and yr2fy are identical 'test_isfy.R:44:3' [success] End test: fy.year and yr2fy are identical Start test: grattan.assume1901_2100 options 'test_isfy.R:49:3' [skip] End test: grattan.assume1901_2100 options Start test: range_fy 'test_isfy.R:59:3' [success] 'test_isfy.R:60:3' [success] End test: range_fy Start test: NA handling 'test_isfy.R:66:3' [success] 'test_isfy.R:68:3' [success] End test: NA handling Start test: qtr2fy error 'test_isfy.R:73:3' [success] End test: qtr2fy error Start test: medicare_levy error handling / deprecated 'test_medicare_levy.R:4:3' [success] 'test_medicare_levy.R:5:3' [success] End test: medicare_levy error handling / deprecated Start test: medicare_levy monotonic 'test_medicare_levy.R:10:3' [success] End test: medicare_levy monotonic Start test: medicare_levy returns known values 'test_medicare_levy.R:22:3' [success] 'test_medicare_levy.R:23:3' [success] 'test_medicare_levy.R:26:3' [success] 'test_medicare_levy.R:27:3' [success] 'test_medicare_levy.R:28:3' [success] 'test_medicare_levy.R:29:3' [success] 'test_medicare_levy.R:31:3' [success] 'test_medicare_levy.R:32:3' [success] 'test_medicare_levy.R:35:3' [success] 'test_medicare_levy.R:42:3' [success] 'test_medicare_levy.R:43:3' [success] 'test_medicare_levy.R:44:3' [success] 'test_medicare_levy.R:45:3' [success] 'test_medicare_levy.R:47:3' [success] 'test_medicare_levy.R:48:3' [success] 'test_medicare_levy.R:49:3' [success] 'test_medicare_levy.R:50:3' [success] 'test_medicare_levy.R:51:3' [success] 'test_medicare_levy.R:53:3' [success] 'test_medicare_levy.R:54:3' [success] 'test_medicare_levy.R:55:3' [success] 'test_medicare_levy.R:56:3' [success] 'test_medicare_levy.R:57:3' [success] End test: medicare_levy returns known values Start test: Medicare family income 2015-16 'test_medicare_levy.R:61:3' [skip] End test: Medicare family income 2015-16 Start test: Medicare with dependants 'test_medicare_levy.R:71:3' [skip] End test: Medicare with dependants Start test: Agrees with Master tax guide 'test_medicare_levy.R:85:3' [success] 'test_medicare_levy.R:86:3' [success] 'test_medicare_levy.R:87:3' [success] End test: Agrees with Master tax guide Start test: Medicare error handling 'test_medicare_levy.R:91:3' [success] 'test_medicare_levy.R:92:3' [success] End test: Medicare error handling Start test: CJ model 'test_modelCJ.R:2:3' [skip] End test: CJ model Start test: Error handling 'test_model_income_tax.R:4:3' [skip] End test: Error handling Start test: La plus ca meme la plus ca meme: la deluge 'test_model_income_tax.R:37:3' [skip] End test: La plus ca meme la plus ca meme: la deluge Start test: La plus ca meme la plus ca meme: medicare levy 'test_model_income_tax.R:58:3' [skip] End test: La plus ca meme la plus ca meme: medicare levy Start test: La plus ca meme la plus ca meme: LITO 'test_model_income_tax.R:78:3' [skip] End test: La plus ca meme la plus ca meme: LITO Start test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO 'test_model_income_tax.R:98:3' [skip] End test: La plus ca meme la plus ca meme: SBTO doesn't interfere with SBTO Start test: Increase in a rate results in more tax 'test_model_income_tax.R:115:3' [skip] End test: Increase in a rate results in more tax Start test: Medicare warnings 'test_model_income_tax.R:138:3' [skip] End test: Medicare warnings Start test: Medicare options 'test_model_income_tax.R:245:3' [skip] End test: Medicare options Start test: Medicare families 'test_model_income_tax.R:324:3' [skip] End test: Medicare families Start test: SAPTO modelled 'test_model_income_tax.R:360:3' [skip] End test: SAPTO modelled Start test: LITO 'test_model_income_tax.R:436:3' [skip] End test: LITO Start test: Elasticity of taxable income 'test_model_income_tax.R:458:3' [skip] End test: Elasticity of taxable income Start test: Elasticity 0 vs 1 'test_model_income_tax.R:542:3' [skip] End test: Elasticity 0 vs 1 Start test: Lamington 'test_model_income_tax.R:581:3' [skip] End test: Lamington Start test: Clear columns 'test_model_income_tax.R:623:3' [skip] End test: Clear columns Start test: sample_file.int 'test_model_income_tax.R:632:3' [skip] End test: sample_file.int Start test: Keyed data.table 'test_model_income_tax.R:643:3' [skip] End test: Keyed data.table Start test: Budget2018 'test_model_income_tax.R:654:3' [skip] End test: Budget2018 Start test: CGT discount 'test_model_income_tax.R:688:3' [skip] End test: CGT discount Start test: CGT (errors) 'test_model_income_tax.R:761:3' [skip] End test: CGT (errors) Start test: SAPTO parameters should not go out of range (causing NAs) 'test_model_income_tax.R:774:3' [skip] End test: SAPTO parameters should not go out of range (causing NAs) Start test: Issue #176 'test_model_income_tax.R:786:3' [skip] End test: Issue #176 Start test: SAPTO modelling done for Age of entitlement report 'test_model_income_tax.R:794:3' [skip] End test: SAPTO modelling done for Age of entitlement report Start test: Error handling 'test_mutate_ntile.R:7:3' [success] 'test_mutate_ntile.R:10:3' [success] 'test_mutate_ntile.R:13:3' [success] 'test_mutate_ntile.R:18:3' [success] 'test_mutate_ntile.R:21:3' [success] 'test_mutate_ntile.R:25:3' [success] 'test_mutate_ntile.R:29:3' [success] 'test_mutate_ntile.R:33:3' [success] 'test_mutate_ntile.R:37:3' [success] 'test_mutate_ntile.R:42:3' [success] 'test_mutate_ntile.R:45:3' [success] 'test_mutate_ntile.R:49:3' [success] End test: Error handling Start test: next_fy plus and minus 'test_next_fy.R:10:3' [success] 'test_next_fy.R:11:3' [success] 'test_next_fy.R:13:3' [success] 'test_next_fy.R:14:3' [success] End test: next_fy plus and minus Start test: prev_fy 'test_next_fy.R:18:3' [success] 'test_next_fy.R:19:3' [success] End test: prev_fy Start test: Error handling 'test_progressivity.R:4:3' [success] 'test_progressivity.R:5:3' [success] End test: Error handling Start test: Simple examples 'test_progressivity.R:11:3' [success] 'test_progressivity.R:12:3' [success] 'test_progressivity.R:13:3' [success] End test: Simple examples Start test: project using australian population 'test_project_aus_pop.R:17:3' [skip] End test: project using australian population Start test: do_rN 'test_rN.R:2:3' [success] 'test_rN.R:3:3' [success] 'test_rN.R:4:3' [success] 'test_rN.R:6:3' [success] 'test_rN.R:7:3' [success] End test: do_rN Start test: Value of revenue_foregone 'test_revenue_foregone.R:9:3' [success] 'test_revenue_foregone.R:10:3' [success] 'test_revenue_foregone.R:12:3' [success] 'test_revenue_foregone.R:13:3' [success] 'test_revenue_foregone.R:16:3' [success] 'test_revenue_foregone.R:17:3' [success] 'test_revenue_foregone.R:20:3' [success] 'test_revenue_foregone.R:21:3' [success] 'test_revenue_foregone.R:24:3' [success] End test: Value of revenue_foregone Start test: latex output produces LaTeX escaped $ 'test_revenue_foregone.R:41:7' [success] End test: latex output produces LaTeX escaped $ Start test: sapto 'test_sapto.R:2:3' [success] 'test_sapto.R:3:3' [success] 'test_sapto.R:5:3' [success] End test: sapto Start test: valid sapto 'test_sapto.R:9:3' [success] 'test_sapto.R:10:3' [success] End test: valid sapto Start test: Example in explanatory memo 'test_small_business_tax_offset.R:4:3' [success] End test: Example in explanatory memo Start test: Always zero for fy_year 'test_small_business_tax_offset.R:15:3' [success] 'test_small_business_tax_offset.R:21:3' [success] 'test_small_business_tax_offset.R:27:3' [success] End test: Always zero for fy_year Start test: Error handling 'test_small_business_tax_offset.R:36:3' [success] 'test_small_business_tax_offset.R:42:3' [success] 'test_small_business_tax_offset.R:49:3' [success] 'test_small_business_tax_offset.R:56:3' [success] End test: Error handling Start test: Warnings with dotsATO 'test_small_business_tax_offset.R:67:3' [skip] End test: Warnings with dotsATO Start test: Results with .dots.ATO 'test_small_business_tax_offset.R:96:3' [skip] End test: Results with .dots.ATO Start test: pension 'test_standardize_payment_names.R:4:3' [success] 'test_standardize_payment_names.R:6:3' [success] End test: pension Start test: stop_via 'test_stop.R:4:3' [success] 'test_stop.R:5:3' [success] 'test_stop.R:6:3' [success] End test: stop_via Start test: Error handling 'test_super_vars.R:4:3' [success] End test: Error handling Start test: Div293 tax is bounded by cap @ 25k 'test_super_vars.R:10:3' [skip] End test: Div293 tax is bounded by cap @ 25k Start test: Div293 tax is bounded by cap @ 20k 'test_super_vars.R:17:3' [skip] End test: Div293 tax is bounded by cap @ 20k Start test: Div293 tax is bounded by cap @ 30k 'test_super_vars.R:23:3' [skip] End test: Div293 tax is bounded by cap @ 30k Start test: Div293 tax is bounded by an arbitrary cap 'test_super_vars.R:32:3' [skip] End test: Div293 tax is bounded by an arbitrary cap Start test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax 'test_super_vars.R:52:3' [skip] End test: Surchargeable income and low tax contributions less than 300,000 implies no Div293 tax Start test: Counts for Div 293 at 250e3 not at odds with PBO 'test_super_vars.R:80:3' [skip] End test: Counts for Div 293 at 250e3 not at odds with PBO Start test: Imputed, reweighted sample file agrees with aggregates by no less than 1% 'test_super_vars.R:130:3' [skip] End test: Imputed, reweighted sample file agrees with aggregates by no less than 1% Start test: Error handling 'test_super_vars.R:170:3' [skip] End test: Error handling Start test: Corner cases 'test_super_vars.R:210:3' [skip] End test: Corner cases Start test: Warning with no WEIGHT. 'test_super_vars.R:240:3' [skip] End test: Warning with no WEIGHT. Start test: Marginals Rate 'test_super_vars.R:246:3' [skip] End test: Marginals Rate Start test: income_tax on individual sample file reflect historical collections 'test_total_receipts.R:15:3' [skip] End test: income_tax on individual sample file reflect historical collections Start test: unselect_ 'test_utils.R:5:3' [success] End test: unselect_ Start test: as.numeric_unless_warning 'test_utils.R:11:3' [success] 'test_utils.R:12:3' [success] End test: as.numeric_unless_warning Start test: anyIntersection 'test_utils.R:16:3' [success] 'test_utils.R:17:3' [success] 'test_utils.R:18:3' [success] End test: anyIntersection Start test: last_over_first 'test_utils.R:22:3' [success] 'test_utils.R:23:3' [success] 'test_utils.R:24:3' [success] End test: last_over_first Start test: coalesce 'test_utils.R:28:3' [success] End test: coalesce Start test: other utils 'test_utils.R:32:3' [success] 'test_utils.R:33:3' [success] End test: other utils Start test: prohibit_length0_vectors 'test_utils.R:37:3' [success] End test: prohibit_length0_vectors Start test: prohibit_vector_recyling 'test_utils.R:41:3' [success] 'test_utils.R:42:3' [success] 'test_utils.R:43:3' [success] 'test_utils.R:44:3' [success] 'test_utils.R:45:3' [success] End test: prohibit_vector_recyling Start test: qtrs_ahead 'test_utils.R:49:3' [success] 'test_utils.R:50:3' [success] 'test_utils.R:51:3' [success] End test: qtrs_ahead Start test: fast selector 'test_utils.R:57:3' [success] End test: fast selector Start test: koffset 'test_utils.R:62:3' [success] End test: koffset Start test: Switch 'test_utils.R:67:3' [success] 'test_utils.R:69:3' [success] End test: Switch Start test: getOption 'test_utils.R:74:3' [success] 'test_utils.R:75:3' [success] End test: getOption Start test: age2age_range 'test_utils.R:80:3' [success] 'test_utils.R:81:3' [success] 'test_utils.R:82:3' [success] 'test_utils.R:83:3' [success] 'test_utils.R:84:3' [success] 'test_utils.R:85:3' [success] End test: age2age_range Start test: hasntName 'test_utils.R:89:3' [success] 'test_utils.R:90:3' [success] End test: hasntName Start test: seq_qtr 'test_utils.R:95:3' [success] 'test_utils.R:98:3' [success] End test: seq_qtr Start test: Error handling 'test_validate_fys.R:10:3' [failure] 'test_validate_fys.R:14:3' [failure] 'test_validate_fys.R:19:3' [failure] 'test_validate_fys.R:22:3' [failure] End test: Error handling Start test: min or max years 'test_validate_fys.R:29:3' [success] 'test_validate_fys.R:30:3' [success] 'test_validate_fys.R:31:3' [success] 'test_validate_fys.R:32:3' [success] 'test_validate_fys.R:33:3' [success] End test: min or max years Start test: validation of other types 'test_validate_fys.R:38:3' [success] 'test_validate_fys.R:39:3' [success] 'test_validate_fys.R:42:3' [success] End test: validation of other types Start test: Validation memoization 'test_validate_fys.R:49:3' [success] 'test_validate_fys.R:51:3' [success] 'test_validate_fys.R:53:3' [success] 'test_validate_fys.R:56:3' [success] 'test_validate_fys.R:59:3' [success] 'test_validate_fys.R:61:3' [success] 'test_validate_fys.R:64:3' [success] End test: Validation memoization Start test: Errors 'test_validate_per.R:4:3' [success] 'test_validate_per.R:6:3' [success] 'test_validate_per.R:8:3' [success] 'test_validate_per.R:10:3' [success] 'test_validate_per.R:13:3' [success] End test: Errors Start test: Values 'test_validate_per.R:18:3' [success] 'test_validate_per.R:20:3' [success] 'test_validate_per.R:22:3' [success] 'test_validate_per.R:24:3' [success] 'test_validate_per.R:26:3' [success] End test: Values Start test: errors 'test_verify_date.R:4:3' [success] 'test_verify_date.R:7:3' [success] 'test_verify_date.R:10:3' [success] 'test_verify_date.R:13:3' [success] 'test_verify_date.R:15:3' [success] 'test_verify_date.R:18:3' [success] 'test_verify_date.R:20:3' [success] 'test_verify_date.R:23:3' [success] 'test_verify_date.R:26:3' [success] End test: errors Start test: values 'test_verify_date.R:33:3' [success] 'test_verify_date.R:34:3' [success] 'test_verify_date.R:38:3' [success] 'test_verify_date.R:42:3' [success] 'test_verify_date.R:44:3' [success] 'test_verify_date.R:48:3' [success] 'test_verify_date.R:52:3' [success] 'test_verify_date.R:56:3' [success] 'test_verify_date.R:60:3' [success] 'test_verify_date.R:64:3' [success] End test: values Start test: sprintf error 'test_verify_date.R:69:3' [success] End test: sprintf error Start test: Performance regression: cpi_inflator 'test_zbenchmark.R:4:3' [skip] End test: Performance regression: cpi_inflator Start test: Performance regression: wage_inflator 'test_zbenchmark.R:27:3' [skip] End test: Performance regression: wage_inflator Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package grattanInflators

Current CRAN status: OK: 13

Package healthyAddress

Current CRAN status: OK: 13

Package heims

Current CRAN status: OK: 13

Package hutils

Current CRAN status: ERROR: 4, OK: 9

Version: 1.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [25s/25s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(hutils) Attaching package: 'hutils' The following object is masked from 'package:base': %notin% > > test_check("hutils") Saving _problems/test-backwards-compatibility-46.R Saving _problems/test-backwards-compatibility-54.R Saving _problems/test-backwards-compatibility-62.R Saving _problems/test_1-0-0_mutate_other-130.R Saving _problems/test_1-0-0_mutate_other-179.R Saving _problems/test_1-0-0_mutate_other-217.R Saving _problems/test_1-3-0_longest_affix-39.R Saving _problems/test_1-3-0_longest_affix-64.R Saving _problems/test_1-4-0_mutate_ntile-30.R Saving _problems/test_1-4-0_numbers-v-words-28.R Saving _problems/test_mutate_ntile-137.R Saving _problems/test_mutate_ntile-176.R [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • Not yet considered (1): 'test-ahull.R:69:3' • On CRAN (17): 'test-dev_copy2a4.R:11:3', 'test_1-0-0_generate_LaTeX_manual.R:4:3', 'test_1-0-0_if_else.R:151:3', 'test_1-2-0_RQ.R:15:3', 'test_benchmarks.R:4:3', 'test_benchmarks.R:23:3', 'test_benchmarks.R:60:3', 'test_check_pkg_dependencies.R:4:3', 'test_find_pattern_in.R:10:3', 'test_find_pattern_in.R:30:3', 'test_find_pattern_in.R:47:3', 'test_find_pattern_in.R:89:3', 'test_find_pattern_in.R:108:3', 'test_find_pattern_in.R:139:3', 'test_mutate_ntile.R:90:3', 'test_provide-file.R:2:3', 'test_provide-file.R:13:3' • identical(.Platform$OS.type, "windows") is not TRUE (3): 'test-dir2.R:4:3', 'test-dir2.R:33:3', 'test-dir2.R:59:3' • packageVersion("survey") >= "4.1" is TRUE (1): 'test_1-3-0_weighted_ntile.R:30:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-backwards-compatibility.R:46:3'): 1.0.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.0.0")) at test-backwards-compatibility.R:46:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.0.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:54:3'): 1.1.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.1.0")) at test-backwards-compatibility.R:54:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.1.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:62:3'): 1.2.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.2.0")) at test-backwards-compatibility.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.2.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test_1-0-0_mutate_other.R:128:3'): var.weight works as expected ───── Error in ``[.data.table`(., , `:=`(.rank, rank(-`_temp`)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─flights_by_dest_month_day %>% ... at test_1-0-0_mutate_other.R:128:3 2. ├─hutils::mutate_other(., "dest", var.weight = "N", by = "month") 3. │ └─out %>% .[, .(`_temp` = .N), keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-`_temp`)), by = by] 5. └─data.table:::`[.data.table`(...) ── Error ('test_1-0-0_mutate_other.R:172:3'): Mutate other weighted ──────────── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[origin == "JFK"] at test_1-0-0_mutate_other.R:172:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-0-0_mutate_other.R:209:3'): Mutate other weighted with mass ── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[] at test_1-0-0_mutate_other.R:209:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-3-0_longest_affix.R:38:3'): trimming ───────────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-3-0_longest_affix.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(paste0("QQQ**", y, "(BBB)")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-3-0_longest_affix.R:63:3'): Corner cases ───────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_1-3-0_longest_affix.R:63:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(c(NULL, "aabbaa", "aaccaa")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_mutate_ntile.R:30:3'): !is.null(by) coverage ───────────── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), by = c(by))`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "y", by = "x", n = 4, new.col = "Above") at test_1-4-0_mutate_ntile.R:30:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_numbers-v-words.R:27:3'): Long ─────────────────────────── Error in ``[.data.table`(DT, , `:=`("res", word2number(.BY[[1L]])), by = "w")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-4-0_numbers-v-words.R:27:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils:::word2number(...) 5. ├─DT[, `:=`("res", word2number(.BY[[1L]])), by = "w"] 6. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:130:3'): bys ──────────────────────────────────── Error in ``[.data.table`(DT, , `:=`((new.col), weighted_ntile(.SD[[.col]], weights = if (!is.null(weights)) { .SD[[weights]] }, n = n)), .SDcols = c(.col, weights), by = c(by))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% filter(manufacturer == "BOEING", seatsQuintile == 5) at test_mutate_ntile.R:130:3 2. ├─dplyr::filter(., manufacturer == "BOEING", seatsQuintile == 5) 3. ├─dplyr::summarise(., seats = mean(seats)) 4. ├─dplyr::group_by(., manufacturer, seatsQuintile) 5. └─hutils::mutate_ntile(., seats, n = 5, by = "manufacturer") 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:176:3'): Error handling (bys, definitely sorted) ── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), keyby = c(keyby))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "col", keyby = "by", n = 10L) at test_mutate_ntile.R:176:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 1.8.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘hutils.Rmd’ using rmarkdown Quitting from hutils.Rmd:503-506 [longest-affix] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 2/2 in VECTOR_ELT --- Backtrace: ▆ 1. └─hutils::trim_common_affixes(...) 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'hutils.Rmd' failed with diagnostics: attempt access index 2/2 in VECTOR_ELT --- failed re-building ‘hutils.Rmd’ SUMMARY: processing the following file failed: ‘hutils.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 1.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [17s/17s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(hutils) Attaching package: 'hutils' The following object is masked from 'package:base': %notin% > > test_check("hutils") Saving _problems/test-backwards-compatibility-46.R Saving _problems/test-backwards-compatibility-54.R Saving _problems/test-backwards-compatibility-62.R Saving _problems/test_1-0-0_mutate_other-130.R Saving _problems/test_1-0-0_mutate_other-179.R Saving _problems/test_1-0-0_mutate_other-217.R Saving _problems/test_1-3-0_longest_affix-39.R Saving _problems/test_1-3-0_longest_affix-64.R Saving _problems/test_1-4-0_mutate_ntile-30.R Saving _problems/test_1-4-0_numbers-v-words-28.R Saving _problems/test_mutate_ntile-137.R Saving _problems/test_mutate_ntile-176.R [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • Not yet considered (1): 'test-ahull.R:69:3' • On CRAN (17): 'test-dev_copy2a4.R:11:3', 'test_1-0-0_generate_LaTeX_manual.R:4:3', 'test_1-0-0_if_else.R:151:3', 'test_1-2-0_RQ.R:15:3', 'test_benchmarks.R:4:3', 'test_benchmarks.R:23:3', 'test_benchmarks.R:60:3', 'test_check_pkg_dependencies.R:4:3', 'test_find_pattern_in.R:10:3', 'test_find_pattern_in.R:30:3', 'test_find_pattern_in.R:47:3', 'test_find_pattern_in.R:89:3', 'test_find_pattern_in.R:108:3', 'test_find_pattern_in.R:139:3', 'test_mutate_ntile.R:90:3', 'test_provide-file.R:2:3', 'test_provide-file.R:13:3' • identical(.Platform$OS.type, "windows") is not TRUE (3): 'test-dir2.R:4:3', 'test-dir2.R:33:3', 'test-dir2.R:59:3' • packageVersion("survey") >= "4.1" is TRUE (1): 'test_1-3-0_weighted_ntile.R:30:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-backwards-compatibility.R:46:3'): 1.0.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.0.0")) at test-backwards-compatibility.R:46:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.0.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:54:3'): 1.1.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.1.0")) at test-backwards-compatibility.R:54:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.1.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:62:3'): 1.2.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.2.0")) at test-backwards-compatibility.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.2.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test_1-0-0_mutate_other.R:128:3'): var.weight works as expected ───── Error in ``[.data.table`(., , `:=`(.rank, rank(-`_temp`)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─flights_by_dest_month_day %>% ... at test_1-0-0_mutate_other.R:128:3 2. ├─hutils::mutate_other(., "dest", var.weight = "N", by = "month") 3. │ └─out %>% .[, .(`_temp` = .N), keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-`_temp`)), by = by] 5. └─data.table:::`[.data.table`(...) ── Error ('test_1-0-0_mutate_other.R:172:3'): Mutate other weighted ──────────── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[origin == "JFK"] at test_1-0-0_mutate_other.R:172:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-0-0_mutate_other.R:209:3'): Mutate other weighted with mass ── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[] at test_1-0-0_mutate_other.R:209:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-3-0_longest_affix.R:38:3'): trimming ───────────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-3-0_longest_affix.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(paste0("QQQ**", y, "(BBB)")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-3-0_longest_affix.R:63:3'): Corner cases ───────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_1-3-0_longest_affix.R:63:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(c(NULL, "aabbaa", "aaccaa")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_mutate_ntile.R:30:3'): !is.null(by) coverage ───────────── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), by = c(by))`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "y", by = "x", n = 4, new.col = "Above") at test_1-4-0_mutate_ntile.R:30:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_numbers-v-words.R:27:3'): Long ─────────────────────────── Error in ``[.data.table`(DT, , `:=`("res", word2number(.BY[[1L]])), by = "w")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-4-0_numbers-v-words.R:27:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils:::word2number(...) 5. ├─DT[, `:=`("res", word2number(.BY[[1L]])), by = "w"] 6. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:130:3'): bys ──────────────────────────────────── Error in ``[.data.table`(DT, , `:=`((new.col), weighted_ntile(.SD[[.col]], weights = if (!is.null(weights)) { .SD[[weights]] }, n = n)), .SDcols = c(.col, weights), by = c(by))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% filter(manufacturer == "BOEING", seatsQuintile == 5) at test_mutate_ntile.R:130:3 2. ├─dplyr::filter(., manufacturer == "BOEING", seatsQuintile == 5) 3. ├─dplyr::summarise(., seats = mean(seats)) 4. ├─dplyr::group_by(., manufacturer, seatsQuintile) 5. └─hutils::mutate_ntile(., seats, n = 5, by = "manufacturer") 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:176:3'): Error handling (bys, definitely sorted) ── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), keyby = c(keyby))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "col", keyby = "by", n = 10L) at test_mutate_ntile.R:176:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [35s/51s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(hutils) Attaching package: 'hutils' The following object is masked from 'package:base': %notin% > > test_check("hutils") Saving _problems/test-backwards-compatibility-46.R Saving _problems/test-backwards-compatibility-54.R Saving _problems/test-backwards-compatibility-62.R Saving _problems/test_1-0-0_mutate_other-130.R Saving _problems/test_1-0-0_mutate_other-179.R Saving _problems/test_1-0-0_mutate_other-217.R Saving _problems/test_1-3-0_longest_affix-39.R Saving _problems/test_1-3-0_longest_affix-64.R Saving _problems/test_1-4-0_mutate_ntile-30.R Saving _problems/test_1-4-0_numbers-v-words-28.R Saving _problems/test_mutate_ntile-137.R Saving _problems/test_mutate_ntile-176.R [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • Not yet considered (1): 'test-ahull.R:69:3' • On CRAN (17): 'test-dev_copy2a4.R:11:3', 'test_1-0-0_generate_LaTeX_manual.R:4:3', 'test_1-0-0_if_else.R:151:3', 'test_1-2-0_RQ.R:15:3', 'test_benchmarks.R:4:3', 'test_benchmarks.R:23:3', 'test_benchmarks.R:60:3', 'test_check_pkg_dependencies.R:4:3', 'test_find_pattern_in.R:10:3', 'test_find_pattern_in.R:30:3', 'test_find_pattern_in.R:47:3', 'test_find_pattern_in.R:89:3', 'test_find_pattern_in.R:108:3', 'test_find_pattern_in.R:139:3', 'test_mutate_ntile.R:90:3', 'test_provide-file.R:2:3', 'test_provide-file.R:13:3' • identical(.Platform$OS.type, "windows") is not TRUE (3): 'test-dir2.R:4:3', 'test-dir2.R:33:3', 'test-dir2.R:59:3' • packageVersion("survey") >= "4.1" is TRUE (1): 'test_1-3-0_weighted_ntile.R:30:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-backwards-compatibility.R:46:3'): 1.0.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.0.0")) at test-backwards-compatibility.R:46:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.0.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:54:3'): 1.1.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.1.0")) at test-backwards-compatibility.R:54:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.1.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:62:3'): 1.2.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.2.0")) at test-backwards-compatibility.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.2.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test_1-0-0_mutate_other.R:128:3'): var.weight works as expected ───── Error in ``[.data.table`(., , `:=`(.rank, rank(-`_temp`)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─flights_by_dest_month_day %>% ... at test_1-0-0_mutate_other.R:128:3 2. ├─hutils::mutate_other(., "dest", var.weight = "N", by = "month") 3. │ └─out %>% .[, .(`_temp` = .N), keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-`_temp`)), by = by] 5. └─data.table:::`[.data.table`(...) ── Error ('test_1-0-0_mutate_other.R:172:3'): Mutate other weighted ──────────── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[origin == "JFK"] at test_1-0-0_mutate_other.R:172:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-0-0_mutate_other.R:209:3'): Mutate other weighted with mass ── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[] at test_1-0-0_mutate_other.R:209:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-3-0_longest_affix.R:38:3'): trimming ───────────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-3-0_longest_affix.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(paste0("QQQ**", y, "(BBB)")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-3-0_longest_affix.R:63:3'): Corner cases ───────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_1-3-0_longest_affix.R:63:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(c(NULL, "aabbaa", "aaccaa")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_mutate_ntile.R:30:3'): !is.null(by) coverage ───────────── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), by = c(by))`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "y", by = "x", n = 4, new.col = "Above") at test_1-4-0_mutate_ntile.R:30:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_numbers-v-words.R:27:3'): Long ─────────────────────────── Error in ``[.data.table`(DT, , `:=`("res", word2number(.BY[[1L]])), by = "w")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-4-0_numbers-v-words.R:27:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils:::word2number(...) 5. ├─DT[, `:=`("res", word2number(.BY[[1L]])), by = "w"] 6. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:130:3'): bys ──────────────────────────────────── Error in ``[.data.table`(DT, , `:=`((new.col), weighted_ntile(.SD[[.col]], weights = if (!is.null(weights)) { .SD[[weights]] }, n = n)), .SDcols = c(.col, weights), by = c(by))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% filter(manufacturer == "BOEING", seatsQuintile == 5) at test_mutate_ntile.R:130:3 2. ├─dplyr::filter(., manufacturer == "BOEING", seatsQuintile == 5) 3. ├─dplyr::summarise(., seats = mean(seats)) 4. ├─dplyr::group_by(., manufacturer, seatsQuintile) 5. └─hutils::mutate_ntile(., seats, n = 5, by = "manufacturer") 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:176:3'): Error handling (bys, definitely sorted) ── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), keyby = c(keyby))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "col", keyby = "by", n = 10L) at test_mutate_ntile.R:176:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.8.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: --- re-building ‘hutils.Rmd’ using rmarkdown Quitting from hutils.Rmd:503-506 [longest-affix] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `[.data.table`: ! attempt access index 2/2 in VECTOR_ELT --- Backtrace: ▆ 1. └─hutils::trim_common_affixes(...) 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'hutils.Rmd' failed with diagnostics: attempt access index 2/2 in VECTOR_ELT --- failed re-building ‘hutils.Rmd’ SUMMARY: processing the following file failed: ‘hutils.Rmd’ Error: Vignette re-building failed. Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 1.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [33s/55s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(hutils) Attaching package: 'hutils' The following object is masked from 'package:base': %notin% > > test_check("hutils") Saving _problems/test-backwards-compatibility-46.R Saving _problems/test-backwards-compatibility-54.R Saving _problems/test-backwards-compatibility-62.R Saving _problems/test_1-0-0_mutate_other-130.R Saving _problems/test_1-0-0_mutate_other-179.R Saving _problems/test_1-0-0_mutate_other-217.R Saving _problems/test_1-3-0_longest_affix-39.R Saving _problems/test_1-3-0_longest_affix-64.R Saving _problems/test_1-4-0_mutate_ntile-30.R Saving _problems/test_1-4-0_numbers-v-words-28.R Saving _problems/test_mutate_ntile-137.R Saving _problems/test_mutate_ntile-176.R [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] ══ Skipped tests (22) ══════════════════════════════════════════════════════════ • Not yet considered (1): 'test-ahull.R:69:3' • On CRAN (17): 'test-dev_copy2a4.R:11:3', 'test_1-0-0_generate_LaTeX_manual.R:4:3', 'test_1-0-0_if_else.R:151:3', 'test_1-2-0_RQ.R:15:3', 'test_benchmarks.R:4:3', 'test_benchmarks.R:23:3', 'test_benchmarks.R:60:3', 'test_check_pkg_dependencies.R:4:3', 'test_find_pattern_in.R:10:3', 'test_find_pattern_in.R:30:3', 'test_find_pattern_in.R:47:3', 'test_find_pattern_in.R:89:3', 'test_find_pattern_in.R:108:3', 'test_find_pattern_in.R:139:3', 'test_mutate_ntile.R:90:3', 'test_provide-file.R:2:3', 'test_provide-file.R:13:3' • identical(.Platform$OS.type, "windows") is not TRUE (3): 'test-dir2.R:4:3', 'test-dir2.R:33:3', 'test-dir2.R:59:3' • packageVersion("survey") >= "4.1" is TRUE (1): 'test_1-3-0_weighted_ntile.R:30:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-backwards-compatibility.R:46:3'): 1.0.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.0.0")) at test-backwards-compatibility.R:46:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.0.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:54:3'): 1.1.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.1.0")) at test-backwards-compatibility.R:54:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.1.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test-backwards-compatibility.R:62:3'): 1.2.0 ──────────────────────── Error in ``[.data.table`(DT, , `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_true(createDigestSha1Tbl("1.2.0")) at test-backwards-compatibility.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils (local) createDigestSha1Tbl("1.2.0") 5. ├─DT[, `:=`("DigestSha1", DigestSha1(.BY[["File"]])), by = "File"] at test-backwards-compatibility.R:20:3 6. └─data.table:::`[.data.table`(...) at test-backwards-compatibility.R:20:3 ── Error ('test_1-0-0_mutate_other.R:128:3'): var.weight works as expected ───── Error in ``[.data.table`(., , `:=`(.rank, rank(-`_temp`)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─flights_by_dest_month_day %>% ... at test_1-0-0_mutate_other.R:128:3 2. ├─hutils::mutate_other(., "dest", var.weight = "N", by = "month") 3. │ └─out %>% .[, .(`_temp` = .N), keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-`_temp`)), by = by] 5. └─data.table:::`[.data.table`(...) ── Error ('test_1-0-0_mutate_other.R:172:3'): Mutate other weighted ──────────── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[origin == "JFK"] at test_1-0-0_mutate_other.R:172:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-0-0_mutate_other.R:209:3'): Mutate other weighted with mass ── Error in ``[.data.table`(., , `:=`(.rank, rank(-N)), by = by)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% .[] at test_1-0-0_mutate_other.R:209:3 2. ├─hutils::mutate_other(...) 3. │ └─out %>% .[, .N, keyby = c(var, by)] %>% ... 4. ├─.[, `:=`(.rank, rank(-N)), by = by] 5. └─data.table:::`[.data.table`(., , `:=`(.rank, rank(-N)), by = by) ── Error ('test_1-3-0_longest_affix.R:38:3'): trimming ───────────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-3-0_longest_affix.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(paste0("QQQ**", y, "(BBB)")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-3-0_longest_affix.R:63:3'): Corner cases ───────────────────── Error in ``[.data.table`(o1, , `:=`("res", substr(v, nchar(Prefix) + 1L, .BY[[1L]] - nchar(Suffix))), by = "ncharv")`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_1-3-0_longest_affix.R:63:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils::trim_common_affixes(c(NULL, "aabbaa", "aaccaa")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_mutate_ntile.R:30:3'): !is.null(by) coverage ───────────── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), by = c(by))`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "y", by = "x", n = 4, new.col = "Above") at test_1-4-0_mutate_ntile.R:30:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_1-4-0_numbers-v-words.R:27:3'): Long ─────────────────────────── Error in ``[.data.table`(DT, , `:=`("res", word2number(.BY[[1L]])), by = "w")`: attempt access index 1/1 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_1-4-0_numbers-v-words.R:27:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─hutils:::word2number(...) 5. ├─DT[, `:=`("res", word2number(.BY[[1L]])), by = "w"] 6. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:130:3'): bys ──────────────────────────────────── Error in ``[.data.table`(DT, , `:=`((new.col), weighted_ntile(.SD[[.col]], weights = if (!is.null(weights)) { .SD[[weights]] }, n = n)), .SDcols = c(.col, weights), by = c(by))`: attempt access index 8/8 in VECTOR_ELT Backtrace: ▆ 1. ├─... %>% filter(manufacturer == "BOEING", seatsQuintile == 5) at test_mutate_ntile.R:130:3 2. ├─dplyr::filter(., manufacturer == "BOEING", seatsQuintile == 5) 3. ├─dplyr::summarise(., seats = mean(seats)) 4. ├─dplyr::group_by(., manufacturer, seatsQuintile) 5. └─hutils::mutate_ntile(., seats, n = 5, by = "manufacturer") 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_mutate_ntile.R:176:3'): Error handling (bys, definitely sorted) ── Error in ``[.data.table`(DT, , `:=`((new.col), .ntile(.SD[[.col]], n, check.na = check.na)), .SDcols = c(.col), keyby = c(keyby))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─hutils::mutate_ntile(DT, "col", keyby = "by", n = 10L) at test_mutate_ntile.R:176:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 12 | WARN 0 | SKIP 22 | PASS 654 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package hutilscpp

Current CRAN status: ERROR: 4, OK: 9

Version: 0.10.10
Check: tests
Result: ERROR Running ‘tinytest.R’ [34s/42s] Running the tests in ‘tests/tinytest.R’ failed. Complete output: > > if (requireNamespace("tinytest", quietly = TRUE) && + requireNamespace("data.table", quietly = TRUE) && + requireNamespace("hutils", quietly = TRUE)) { + if (startsWith(Sys.getenv("USERNAME"), "hugh")) { + options(hutilscpp.nThread = 10) + } + if (requireNamespace("covr", quietly = TRUE) && covr::in_covr()) { + options(hutilscpp.nThread = 1L) + } + library(data.table) + library(hutils, warn.conflicts = FALSE) + tinytest::test_package("hutilscpp", verbose = 0L) + } Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Output is double Output is double Output is double Error in `[.data.table`(DM2, , `:=`(seq_n, seq_len(.N)), keyby = "j0_k") : attempt access index 2/2 in VECTOR_ELT Calls: <Anonymous> ... run_test_dir -> lapply -> FUN -> eval -> eval -> [ -> [.data.table Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.10.10
Check: tests
Result: ERROR Running ‘tinytest.R’ [14s/16s] Running the tests in ‘tests/tinytest.R’ failed. Complete output: > > if (requireNamespace("tinytest", quietly = TRUE) && + requireNamespace("data.table", quietly = TRUE) && + requireNamespace("hutils", quietly = TRUE)) { + if (startsWith(Sys.getenv("USERNAME"), "hugh")) { + options(hutilscpp.nThread = 10) + } + if (requireNamespace("covr", quietly = TRUE) && covr::in_covr()) { + options(hutilscpp.nThread = 1L) + } + library(data.table) + library(hutils, warn.conflicts = FALSE) + tinytest::test_package("hutilscpp", verbose = 0L) + } Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Output is double Output is double Output is double Error in `[.data.table`(DM2, , `:=`(seq_n, seq_len(.N)), keyby = "j0_k") : attempt access index 2/2 in VECTOR_ELT Calls: <Anonymous> ... run_test_dir -> lapply -> FUN -> eval -> eval -> [ -> [.data.table Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.10.10
Check: tests
Result: ERROR Running ‘tinytest.R’ [55s/75s] Running the tests in ‘tests/tinytest.R’ failed. Complete output: > > if (requireNamespace("tinytest", quietly = TRUE) && + requireNamespace("data.table", quietly = TRUE) && + requireNamespace("hutils", quietly = TRUE)) { + if (startsWith(Sys.getenv("USERNAME"), "hugh")) { + options(hutilscpp.nThread = 10) + } + if (requireNamespace("covr", quietly = TRUE) && covr::in_covr()) { + options(hutilscpp.nThread = 1L) + } + library(data.table) + library(hutils, warn.conflicts = FALSE) + tinytest::test_package("hutilscpp", verbose = 0L) + } Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Output is double Output is double Output is double Error in `[.data.table`(DM2, , `:=`(seq_n, seq_len(.N)), keyby = "j0_k") : attempt access index 2/2 in VECTOR_ELT Calls: <Anonymous> ... run_test_dir -> lapply -> FUN -> eval -> eval -> [ -> [.data.table Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.10.10
Check: tests
Result: ERROR Running ‘tinytest.R’ [51s/86s] Running the tests in ‘tests/tinytest.R’ failed. Complete output: > > if (requireNamespace("tinytest", quietly = TRUE) && + requireNamespace("data.table", quietly = TRUE) && + requireNamespace("hutils", quietly = TRUE)) { + if (startsWith(Sys.getenv("USERNAME"), "hugh")) { + options(hutilscpp.nThread = 10) + } + if (requireNamespace("covr", quietly = TRUE) && covr::in_covr()) { + options(hutilscpp.nThread = 1L) + } + library(data.table) + library(hutils, warn.conflicts = FALSE) + tinytest::test_package("hutilscpp", verbose = 0L) + } Attaching package: 'data.table' The following object is masked from 'package:base': %notin% Output is double Output is double Output is double Error in `[.data.table`(DM2, , `:=`(seq_n, seq_len(.N)), keyby = "j0_k") : attempt access index 2/2 in VECTOR_ELT Calls: <Anonymous> ... run_test_dir -> lapply -> FUN -> eval -> eval -> [ -> [.data.table Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Package TeXCheckR

Current CRAN status: ERROR: 4, OK: 9

Version: 0.8.1
Check: examples
Result: ERROR Running examples in ‘TeXCheckR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: parse_tex > ### Title: Parse LaTeX lines > ### Aliases: parse_tex > > ### ** Examples > > parse_tex(c("A{}", "B[a]{b{c}{d}}z")) Error in `[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), : attempt access index 11/11 in VECTOR_ELT Calls: parse_tex -> [ -> [.data.table Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [20s/26s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(TeXCheckR) > > test_check("TeXCheckR") Saving _problems/test-locate_latex_argument-5.R Saving _problems/test-locate_latex_argument-16.R ✖ 4: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}✖ 4: \chapter{A chapter without a label}Saving _problems/test_extract_LaTeX_argument-4.R Saving _problems/test_extract_LaTeX_argument-11.R Saving _problems/test_extract_LaTeX_argument-19.R Saving _problems/test_extract_LaTeX_argument-35.R Saving _problems/test_extract_LaTeX_argument-58.R Saving _problems/test_extract_LaTeX_argument-78.R Saving _problems/test_extract_LaTeX_argument-107.R Saving _problems/test_extract_LaTeX_argument-121.R Saving _problems/test_extract_LaTeX_argument-145.R Saving _problems/test_extract_LaTeX_argument-159.R Saving _problems/test_extract_LaTeX_argument-167.R Saving _problems/test_extract_LaTeX_argument-181.R Saving _problems/test_extract_LaTeX_argument-197.R Saving _problems/test_extract_LaTeX_argument-209.R Saving _problems/test_extract_LaTeX_argument-219.R Saving _problems/test_fill_nth_LaTeX_argument-5.R Saving _problems/test_footnote_typography-13.R Saving _problems/test_footnote_typography-15.R Saving _problems/test_footnote_typography-17.R Saving _problems/test_footnote_typography-20.R Saving _problems/test_footnote_typography-22.R Saving _problems/test_footnote_typography-25.R Saving _problems/test_footnote_typography-30.R Saving _problems/test_footnote_typography-72.R Saving _problems/test_inputs_of-4.R Saving _problems/test_inputs_of-16.R Saving _problems/test_locate_footcite_punctuation-6.R Saving _problems/test_parse_tex-15.R Saving _problems/test_parse_tex-26.R Saving _problems/test_parse_tex-32.R Saving _problems/test_parse_tex-39.R Saving _problems/test_read_tex_document-21.R Saving _problems/test_sort_bib-8.R Saving _problems/test_spellcheck-13.R Saving _problems/test_spellcheck-18.R Saving _problems/test_spellcheck-26.R Saving _problems/test_spellcheck-35.R Saving _problems/test_spellcheck-39.R Saving _problems/test_spellcheck-41.R Saving _problems/test_spellcheck-43.R Saving _problems/test_spellcheck-56.R Saving _problems/test_spellcheck-57.R Saving _problems/test_spellcheck-65.R Saving _problems/test_spellcheck-67.R Saving _problems/test_spellcheck-71.R Saving _problems/test_spellcheck-72.R Saving _problems/test_spellcheck-73.R Saving _problems/test_spellcheck-74.R Saving _problems/test_spellcheck-75.R Saving _problems/test_spellcheck-79.R Saving _problems/test_spellcheck-94.R Saving _problems/test_spellcheck-98.R Saving _problems/test_spellcheck-103.R Saving _problems/test_spellcheck-117.R Saving _problems/test_spellcheck-128.R Saving _problems/test_spellcheck-139.R Saving _problems/test_spellcheck-146.R Saving _problems/test_spellcheck-150.R Saving _problems/test_spellcheck-162.R Saving _problems/test_spellcheck-176.R Saving _problems/test_spellcheck_0-6-2-6.R Saving _problems/test_spellcheck_0-6-2-8.R Saving _problems/test_spellcheck_0-7-0-13.R Saving _problems/test_utils-71.R Saving _problems/test_validate_bibliography-5.R Saving _problems/test_validate_bibliography-6.R Key: <key> key Author Title date <char> <char> <char> <char> 1: RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status <NA> 2: RMS2010Hunter RMS, NSW hunter expressway – current status <NA> year <char> 1: 2010 2: 2010 Key: <key> key Author Title date year <char> <char> <char> <char> <char> 1: Treasury2014TES2013 Treasury tax expenditures statement 2013 <NA> 2014 2: Treasury2014f Treasury tax expenditures statement 2013 <NA> 2014 line_no x field <int> <char> <char> 1: 1 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key 2: 9 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key value is_key <char> <lgcl> 1: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE 2: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE key_value bib_file <char> <char> 1: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib 2: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib bib_file line_no key value authors <char> <int> <char> <char> <char> 1: validate-bib/near-dup-authors.bib 8 VicRoadsr VicRoads VicRoads Each field line in .bib must end with a comma (to allow reordering). ✖ 6: volume = {6} author = {Australian Taxation Office},✖ Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Saving _problems/test_veto_sic-62.R [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • Not yet implemented (1): 'test_split_report.R:4:3' • On CRAN (11): 'test-zzz-check-pkgs-spelling.R:4:3', 'test_check_biber.R:5:3', 'test_check_biber.R:26:3', 'test_check_dashes.R:39:3', 'test_check_labels.R:29:3', 'test_minimal_bib.R:4:3', 'test_spellcheck.R:107:3', 'test_spellcheck.R:198:3', 'test_utils.R:47:3', 'test_zReports.R:4:3', 'test_zReports.R:32:3' • Too noisy (1): 'test_check_consecutive_words.R:4:3' • empty test (1): 'test_replace_LaTeX_argument.R:27:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-locate_latex_argument.R:5:3'): Locations ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(Line1) at test-locate_latex_argument.R:5:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-locate_latex_argument.R:16:3'): Issue 73 ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) at test-locate_latex_argument.R:16:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:4:3'): Extract textbf ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:4:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:11:3'): Extract textcites ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:11:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:18:3'): Extract nested ──────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:18:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:32:3'): Optional argument ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:32:3 2. └─TeXCheckR::extract_optional_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:58:3'): Multi-line starred ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:58:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:78:3'): Multi-line ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:78:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:107:3'): Optional argument interference ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_extract_LaTeX_argument.R:107:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::extract_mandatory_LaTeX_argument("\\abc{def}", "abc") 5. └─TeXCheckR::parse_tex(tex_lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:121:3'): Multi-lines ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:121:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:144:3'): Road congestion example ────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:144:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:159:3'): Whitespace gobbling ────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:159:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:167:3'): Optional argument ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_optional_LaTeX_argument(...) at test_extract_LaTeX_argument.R:167:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:181:3'): Argument requested but missing ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:181:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:197:3'): Environments ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:197:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:209:3'): Optional containing square brackets ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:209:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:219:3'): % et sqq should not be included in extract ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:219:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_fill_nth_LaTeX_argument.R:5:3'): Known results ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR:::fill_nth_LaTeX_argument(...) at test_fill_nth_LaTeX_argument.R:5:3 2. │ └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(y1) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:12:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:12: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:14:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:14: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:16:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/notok-end-itemize.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:16: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/notok-end-itemize.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:19:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnote" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:19: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:21:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation mark after footcite" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:21: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:24:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/colon-then-equation.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnotemark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:24: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/colon-then-equation.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:28:3'): Invalid typography stops ─────── Expected `tryCatch(...)` to produce output. ── Failure ('test_footnote_typography.R:71:3'): Footcites and footcite in same document don't get confused about dots after ── `check_footnote_typography("./fnote-typogr/dot-after-footcites.tex")` threw an error with unexpected message. Expected match: "Punctuation mark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:71: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/dot-after-footcites.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_inputs_of.R:4:3'): Inputs of (no preamble) ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of("extract/road-congestion.tex") at test_inputs_of.R:4:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_inputs_of.R:14:3'): Includes x ───────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of(...) at test_inputs_of.R:14:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_locate_footcite_punctuation.R:6:3'): Finds correct location ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_footcite_punctuation(tex_lines = read_lines("locate_footcite_punctuation/1.tex")) at test_locate_footcite_punctuation.R:6:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:15:3'): parse_tex single group ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:15:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:26:3'): GRP_ID identifies group ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:26:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:31:3'): Verify % is not parsed ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:31:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("A {", "f ", "Z}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:38:3'): Parse tiny documents ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("", "A{B}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_read_tex_document.R:21:3'): Reads file with spaces before input ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::read_tex_document(tempf) at test_read_tex_document.R:21:3 2. │ └─... %>% .subset2("extract") 3. └─TeXCheckR::extract_mandatory_LaTeX_argument(., "input") 4. └─TeXCheckR::parse_tex(tex_lines) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_sort_bib.R:7:3'): sort bib correctly sorts ───────────────────── Error in ``[.data.table`(., , `:=`(intra_key_line_no, seq_len(.N)), by = "key")`: attempt access index 13/13 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::reorder_bib("./sort-bib/incorrectly-sorted.bib", "./sort-bib/correctly-sorted-out.bib") at test_sort_bib.R:7:3 2. │ └─TeXCheckR::bib2DT(file.bib, to_sort = TRUE) 3. │ └─... %>% .[] 4. ├─data.table::setorder(., Surname, Date, title, field_name, Line_no) 5. │ └─base::is.data.frame(x) 6. ├─.[, `:=`(intra_key_line_no, seq_len(.N)), by = "key"] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:9:3'): School funding report checks out ─────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:9:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:17:3'): Check spelling of multiple input document ── `check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex")` threw an error with unexpected message. Expected match: "failed on above line" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:17: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. ├─TeXCheckR::check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:26:3'): Initalisms ──────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-defd-ok.tex")) at test_spellcheck.R:26:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-defd-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:35:3'): Initialism checking doesn't fail if at start of sentence ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-at-line-start.tex")) at test_spellcheck.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-at-line-start.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:39:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/add_to_dictionary-wrong.tex")` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:39: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. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-wrong.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:40:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/ignore_spelling_in-wrong.tex", pre_release = FALSE)` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:40: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. └─TeXCheckR::check_spelling(...) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:43:3'): Add to dictionary, ignore spelling in ───── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/add_to_dictionary-ok.tex")) at test_spellcheck.R:43:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:55:3'): Ignore spelling in input ──────────────── `check_spelling("./spelling/input/a.tex", pre_release = TRUE)` threw an error with unexpected message. Expected match: "Spellcheck failed on above line with .asofihsafioh" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:55: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. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = TRUE) 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:57:3'): Ignore spelling in input ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:57:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = FALSE) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:65:3'): Stop if present ───────────────────────── `check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex")` threw an error with unexpected message. Expected match: "skillset" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:65: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. ├─TeXCheckR::check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:67:3'): Stop if present ─────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./stop_if_present/should-not-stop.tex")) at test_spellcheck.R:67:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./stop_if_present/should-not-stop.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:71:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NSWgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:71: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. └─TeXCheckR::check_spelling("./spelling/Govt/NSWgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:72:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/ACTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:72: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. └─TeXCheckR::check_spelling("./spelling/Govt/ACTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:73:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:73: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. └─TeXCheckR::check_spelling("./spelling/Govt/NTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:74:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/Queenslandgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:74: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. └─TeXCheckR::check_spelling("./spelling/Govt/Queenslandgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:75:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/WAgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:75: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. └─TeXCheckR::check_spelling("./spelling/Govt/WAgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:79:3'): Some lower-case governments should not ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/Govt/ok-as-adj.tex")) at test_spellcheck.R:79:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/Govt/ok-as-adj.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:94:3'): 'percent' error should only occur in a Grattan report ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(percent_spellcheck.tex)) at test_spellcheck.R:94:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(percent_spellcheck.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:98:3'): Includepdf doesn't result in a failed include message ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/includepdf-ok.tex")) at test_spellcheck.R:98:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/includepdf-ok.tex") 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:103:3'): Should error ─────────────────────────── `check_spelling("spelling/typo-suggest.tex")` threw an error with unexpected message. Expected match: "Spellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:103: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. └─TeXCheckR::check_spelling("spelling/typo-suggest.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:116:3'): Inputs should respect dict_lang at top level ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:116:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling(...) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:128:3'): Lonesome footcites ───────────────────── `check_spelling(footcite.tex)` threw an error with unexpected message. Expected match: "[Ss]pellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(check_spelling(footcite.tex), regexp = "[Ss]pellcheck") at test_spellcheck.R:128: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. └─TeXCheckR::check_spelling(footcite.tex) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:139:3'): Multi-ignore ───────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3))) at test_spellcheck.R:139:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3)) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:145:3'): Like Energy-2018-WholesaleMarketPower ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:145:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:150:3'): Spellcheck verb ────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("spelling/verb.tex")) at test_spellcheck.R:150:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("spelling/verb.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:162:3'): pre-release + add to dictionary outside ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempfile.tex, pre_release = FALSE)) at test_spellcheck.R:162:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempfile.tex, pre_release = FALSE) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:176:3'): known.correct.fixed ────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:176:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck_0-6-2.R:5:3'): grattanReporter #113 ─────────────── `check_spelling("spelling/ignore_113.tex")` threw an error with unexpected message. Expected match: "failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck_0-6-2.R:5: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. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-6-2.R:7:3'): grattanReporter #113 ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck_0-6-2.R:7:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex", ignore_spelling_in_nth = list(foo = 1:2)) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-7-0.R:13:3'): Possessive apostrophes don't trigger false positives ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempf.tex)) at test_spellcheck_0-7-0.R:13:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempf.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_utils.R:67:3'): transpose ────────────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─parse_tex(c("A{}", "B[a]{b{c}{d}}z")) %>% ... at test_utils.R:67:3 2. └─TeXCheckR::parse_tex(c("A{}", "B[a]{b{c}{d}}z")) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Failure ('test_validate_bibliography.R:4:3'): Bills of Parliament ─────────── `validate_bibliography(file = "./validate-bib/invalid-Bill.bib")` threw an error with unexpected message. Expected match: "Bills? of Parliament" Actual message: "attempt access index 2/2 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_validate_bibliography.R:4: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. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-Bill.bib") 7. │ └─... %>% .[newspaper_by_url] 8. ├─data.table::setkey(., journal_from_url) 9. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 10. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:6:3'): Bills of Parliament ───────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(validate_bibliography(file = "./validate-bib/valid-Bill.bib")) at test_validate_bibliography.R:6:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/valid-Bill.bib") 5. │ └─... %>% .[newspaper_by_url] 6. ├─data.table::setkey(., journal_from_url) 7. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 8. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:50:5'): Hypercorrected mendeleys ─────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:50:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-hypercorrected.bib") 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:85:5'): DOI ──────────────────────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:85:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = doi_bib) 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_veto_sic.R:62:3'): With check_spelling ───────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/sic/sic-vetoes.tex")) at test_veto_sic.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/sic/sic-vetoes.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [14s/19s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(TeXCheckR) > > test_check("TeXCheckR") Saving _problems/test-locate_latex_argument-5.R Saving _problems/test-locate_latex_argument-16.R ✖ 4: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}✖ 4: \chapter{A chapter without a label}Saving _problems/test_extract_LaTeX_argument-4.R Saving _problems/test_extract_LaTeX_argument-11.R Saving _problems/test_extract_LaTeX_argument-19.R Saving _problems/test_extract_LaTeX_argument-35.R Saving _problems/test_extract_LaTeX_argument-58.R Saving _problems/test_extract_LaTeX_argument-78.R Saving _problems/test_extract_LaTeX_argument-107.R Saving _problems/test_extract_LaTeX_argument-121.R Saving _problems/test_extract_LaTeX_argument-145.R Saving _problems/test_extract_LaTeX_argument-159.R Saving _problems/test_extract_LaTeX_argument-167.R Saving _problems/test_extract_LaTeX_argument-181.R Saving _problems/test_extract_LaTeX_argument-197.R Saving _problems/test_extract_LaTeX_argument-209.R Saving _problems/test_extract_LaTeX_argument-219.R Saving _problems/test_fill_nth_LaTeX_argument-5.R Saving _problems/test_footnote_typography-13.R Saving _problems/test_footnote_typography-15.R Saving _problems/test_footnote_typography-17.R Saving _problems/test_footnote_typography-20.R Saving _problems/test_footnote_typography-22.R Saving _problems/test_footnote_typography-25.R Saving _problems/test_footnote_typography-30.R Saving _problems/test_footnote_typography-72.R Saving _problems/test_inputs_of-4.R Saving _problems/test_inputs_of-16.R Saving _problems/test_locate_footcite_punctuation-6.R Saving _problems/test_parse_tex-15.R Saving _problems/test_parse_tex-26.R Saving _problems/test_parse_tex-32.R Saving _problems/test_parse_tex-39.R Saving _problems/test_read_tex_document-21.R Saving _problems/test_sort_bib-8.R Saving _problems/test_spellcheck-13.R Saving _problems/test_spellcheck-18.R Saving _problems/test_spellcheck-26.R Saving _problems/test_spellcheck-35.R Saving _problems/test_spellcheck-39.R Saving _problems/test_spellcheck-41.R Saving _problems/test_spellcheck-43.R Saving _problems/test_spellcheck-56.R Saving _problems/test_spellcheck-57.R Saving _problems/test_spellcheck-65.R Saving _problems/test_spellcheck-67.R Saving _problems/test_spellcheck-71.R Saving _problems/test_spellcheck-72.R Saving _problems/test_spellcheck-73.R Saving _problems/test_spellcheck-74.R Saving _problems/test_spellcheck-75.R Saving _problems/test_spellcheck-79.R Saving _problems/test_spellcheck-94.R Saving _problems/test_spellcheck-98.R Saving _problems/test_spellcheck-103.R Saving _problems/test_spellcheck-117.R Saving _problems/test_spellcheck-128.R Saving _problems/test_spellcheck-139.R Saving _problems/test_spellcheck-146.R Saving _problems/test_spellcheck-150.R Saving _problems/test_spellcheck-162.R Saving _problems/test_spellcheck-176.R Saving _problems/test_spellcheck_0-6-2-6.R Saving _problems/test_spellcheck_0-6-2-8.R Saving _problems/test_spellcheck_0-7-0-13.R Saving _problems/test_utils-71.R Saving _problems/test_validate_bibliography-5.R Saving _problems/test_validate_bibliography-6.R Key: <key> key Author Title date <char> <char> <char> <char> 1: RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status <NA> 2: RMS2010Hunter RMS, NSW hunter expressway – current status <NA> year <char> 1: 2010 2: 2010 Key: <key> key Author Title date year <char> <char> <char> <char> <char> 1: Treasury2014TES2013 Treasury tax expenditures statement 2013 <NA> 2014 2: Treasury2014f Treasury tax expenditures statement 2013 <NA> 2014 line_no x field <int> <char> <char> 1: 1 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key 2: 9 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key value is_key <char> <lgcl> 1: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE 2: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE key_value bib_file <char> <char> 1: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib 2: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib bib_file line_no key value authors <char> <int> <char> <char> <char> 1: validate-bib/near-dup-authors.bib 8 VicRoadsr VicRoads VicRoads Each field line in .bib must end with a comma (to allow reordering). ✖ 6: volume = {6} author = {Australian Taxation Office},✖ Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Saving _problems/test_veto_sic-62.R [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • Not yet implemented (1): 'test_split_report.R:4:3' • On CRAN (11): 'test-zzz-check-pkgs-spelling.R:4:3', 'test_check_biber.R:5:3', 'test_check_biber.R:26:3', 'test_check_dashes.R:39:3', 'test_check_labels.R:29:3', 'test_minimal_bib.R:4:3', 'test_spellcheck.R:107:3', 'test_spellcheck.R:198:3', 'test_utils.R:47:3', 'test_zReports.R:4:3', 'test_zReports.R:32:3' • Too noisy (1): 'test_check_consecutive_words.R:4:3' • empty test (1): 'test_replace_LaTeX_argument.R:27:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-locate_latex_argument.R:5:3'): Locations ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(Line1) at test-locate_latex_argument.R:5:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-locate_latex_argument.R:16:3'): Issue 73 ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) at test-locate_latex_argument.R:16:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:4:3'): Extract textbf ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:4:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:11:3'): Extract textcites ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:11:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:18:3'): Extract nested ──────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:18:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:32:3'): Optional argument ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:32:3 2. └─TeXCheckR::extract_optional_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:58:3'): Multi-line starred ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:58:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:78:3'): Multi-line ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:78:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:107:3'): Optional argument interference ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_extract_LaTeX_argument.R:107:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::extract_mandatory_LaTeX_argument("\\abc{def}", "abc") 5. └─TeXCheckR::parse_tex(tex_lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:121:3'): Multi-lines ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:121:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:144:3'): Road congestion example ────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:144:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:159:3'): Whitespace gobbling ────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:159:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:167:3'): Optional argument ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_optional_LaTeX_argument(...) at test_extract_LaTeX_argument.R:167:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:181:3'): Argument requested but missing ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:181:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:197:3'): Environments ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:197:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:209:3'): Optional containing square brackets ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:209:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:219:3'): % et sqq should not be included in extract ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:219:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_fill_nth_LaTeX_argument.R:5:3'): Known results ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR:::fill_nth_LaTeX_argument(...) at test_fill_nth_LaTeX_argument.R:5:3 2. │ └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(y1) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:12:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:12: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:14:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:14: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:16:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/notok-end-itemize.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:16: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/notok-end-itemize.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:19:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnote" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:19: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:21:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation mark after footcite" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:21: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:24:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/colon-then-equation.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnotemark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:24: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/colon-then-equation.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:28:3'): Invalid typography stops ─────── Expected `tryCatch(...)` to produce output. ── Failure ('test_footnote_typography.R:71:3'): Footcites and footcite in same document don't get confused about dots after ── `check_footnote_typography("./fnote-typogr/dot-after-footcites.tex")` threw an error with unexpected message. Expected match: "Punctuation mark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:71: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/dot-after-footcites.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_inputs_of.R:4:3'): Inputs of (no preamble) ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of("extract/road-congestion.tex") at test_inputs_of.R:4:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_inputs_of.R:14:3'): Includes x ───────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of(...) at test_inputs_of.R:14:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_locate_footcite_punctuation.R:6:3'): Finds correct location ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_footcite_punctuation(tex_lines = read_lines("locate_footcite_punctuation/1.tex")) at test_locate_footcite_punctuation.R:6:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:15:3'): parse_tex single group ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:15:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:26:3'): GRP_ID identifies group ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:26:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:31:3'): Verify % is not parsed ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:31:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("A {", "f ", "Z}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:38:3'): Parse tiny documents ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("", "A{B}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_read_tex_document.R:21:3'): Reads file with spaces before input ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::read_tex_document(tempf) at test_read_tex_document.R:21:3 2. │ └─... %>% .subset2("extract") 3. └─TeXCheckR::extract_mandatory_LaTeX_argument(., "input") 4. └─TeXCheckR::parse_tex(tex_lines) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_sort_bib.R:7:3'): sort bib correctly sorts ───────────────────── Error in ``[.data.table`(., , `:=`(intra_key_line_no, seq_len(.N)), by = "key")`: attempt access index 13/13 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::reorder_bib("./sort-bib/incorrectly-sorted.bib", "./sort-bib/correctly-sorted-out.bib") at test_sort_bib.R:7:3 2. │ └─TeXCheckR::bib2DT(file.bib, to_sort = TRUE) 3. │ └─... %>% .[] 4. ├─data.table::setorder(., Surname, Date, title, field_name, Line_no) 5. │ └─base::is.data.frame(x) 6. ├─.[, `:=`(intra_key_line_no, seq_len(.N)), by = "key"] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:9:3'): School funding report checks out ─────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:9:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:17:3'): Check spelling of multiple input document ── `check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex")` threw an error with unexpected message. Expected match: "failed on above line" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:17: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. ├─TeXCheckR::check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:26:3'): Initalisms ──────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-defd-ok.tex")) at test_spellcheck.R:26:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-defd-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:35:3'): Initialism checking doesn't fail if at start of sentence ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-at-line-start.tex")) at test_spellcheck.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-at-line-start.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:39:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/add_to_dictionary-wrong.tex")` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:39: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. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-wrong.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:40:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/ignore_spelling_in-wrong.tex", pre_release = FALSE)` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:40: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. └─TeXCheckR::check_spelling(...) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:43:3'): Add to dictionary, ignore spelling in ───── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/add_to_dictionary-ok.tex")) at test_spellcheck.R:43:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:55:3'): Ignore spelling in input ──────────────── `check_spelling("./spelling/input/a.tex", pre_release = TRUE)` threw an error with unexpected message. Expected match: "Spellcheck failed on above line with .asofihsafioh" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:55: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. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = TRUE) 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:57:3'): Ignore spelling in input ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:57:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = FALSE) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:65:3'): Stop if present ───────────────────────── `check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex")` threw an error with unexpected message. Expected match: "skillset" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:65: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. ├─TeXCheckR::check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:67:3'): Stop if present ─────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./stop_if_present/should-not-stop.tex")) at test_spellcheck.R:67:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./stop_if_present/should-not-stop.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:71:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NSWgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:71: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. └─TeXCheckR::check_spelling("./spelling/Govt/NSWgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:72:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/ACTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:72: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. └─TeXCheckR::check_spelling("./spelling/Govt/ACTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:73:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:73: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. └─TeXCheckR::check_spelling("./spelling/Govt/NTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:74:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/Queenslandgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:74: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. └─TeXCheckR::check_spelling("./spelling/Govt/Queenslandgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:75:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/WAgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:75: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. └─TeXCheckR::check_spelling("./spelling/Govt/WAgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:79:3'): Some lower-case governments should not ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/Govt/ok-as-adj.tex")) at test_spellcheck.R:79:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/Govt/ok-as-adj.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:94:3'): 'percent' error should only occur in a Grattan report ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(percent_spellcheck.tex)) at test_spellcheck.R:94:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(percent_spellcheck.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:98:3'): Includepdf doesn't result in a failed include message ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/includepdf-ok.tex")) at test_spellcheck.R:98:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/includepdf-ok.tex") 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:103:3'): Should error ─────────────────────────── `check_spelling("spelling/typo-suggest.tex")` threw an error with unexpected message. Expected match: "Spellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:103: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. └─TeXCheckR::check_spelling("spelling/typo-suggest.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:116:3'): Inputs should respect dict_lang at top level ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:116:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling(...) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:128:3'): Lonesome footcites ───────────────────── `check_spelling(footcite.tex)` threw an error with unexpected message. Expected match: "[Ss]pellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(check_spelling(footcite.tex), regexp = "[Ss]pellcheck") at test_spellcheck.R:128: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. └─TeXCheckR::check_spelling(footcite.tex) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:139:3'): Multi-ignore ───────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3))) at test_spellcheck.R:139:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3)) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:145:3'): Like Energy-2018-WholesaleMarketPower ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:145:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:150:3'): Spellcheck verb ────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("spelling/verb.tex")) at test_spellcheck.R:150:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("spelling/verb.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:162:3'): pre-release + add to dictionary outside ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempfile.tex, pre_release = FALSE)) at test_spellcheck.R:162:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempfile.tex, pre_release = FALSE) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:176:3'): known.correct.fixed ────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:176:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck_0-6-2.R:5:3'): grattanReporter #113 ─────────────── `check_spelling("spelling/ignore_113.tex")` threw an error with unexpected message. Expected match: "failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck_0-6-2.R:5: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. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-6-2.R:7:3'): grattanReporter #113 ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck_0-6-2.R:7:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex", ignore_spelling_in_nth = list(foo = 1:2)) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-7-0.R:13:3'): Possessive apostrophes don't trigger false positives ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempf.tex)) at test_spellcheck_0-7-0.R:13:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempf.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_utils.R:67:3'): transpose ────────────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─parse_tex(c("A{}", "B[a]{b{c}{d}}z")) %>% ... at test_utils.R:67:3 2. └─TeXCheckR::parse_tex(c("A{}", "B[a]{b{c}{d}}z")) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Failure ('test_validate_bibliography.R:4:3'): Bills of Parliament ─────────── `validate_bibliography(file = "./validate-bib/invalid-Bill.bib")` threw an error with unexpected message. Expected match: "Bills? of Parliament" Actual message: "attempt access index 2/2 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_validate_bibliography.R:4: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. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-Bill.bib") 7. │ └─... %>% .[newspaper_by_url] 8. ├─data.table::setkey(., journal_from_url) 9. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 10. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:6:3'): Bills of Parliament ───────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(validate_bibliography(file = "./validate-bib/valid-Bill.bib")) at test_validate_bibliography.R:6:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/valid-Bill.bib") 5. │ └─... %>% .[newspaper_by_url] 6. ├─data.table::setkey(., journal_from_url) 7. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 8. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:50:5'): Hypercorrected mendeleys ─────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:50:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-hypercorrected.bib") 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:85:5'): DOI ──────────────────────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:85:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = doi_bib) 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_veto_sic.R:62:3'): With check_spelling ───────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/sic/sic-vetoes.tex")) at test_veto_sic.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/sic/sic-vetoes.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.8.1
Check: examples
Result: ERROR Running examples in ‘TeXCheckR-Ex.R’ failed The error most likely occurred in: > ### Name: parse_tex > ### Title: Parse LaTeX lines > ### Aliases: parse_tex > > ### ** Examples > > parse_tex(c("A{}", "B[a]{b{c}{d}}z")) Error in `[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), : attempt access index 11/11 in VECTOR_ELT Calls: parse_tex -> [ -> [.data.table Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [31s/39s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(TeXCheckR) > > test_check("TeXCheckR") Saving _problems/test-locate_latex_argument-5.R Saving _problems/test-locate_latex_argument-16.R ✖ 4: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}✖ 4: \chapter{A chapter without a label}Saving _problems/test_extract_LaTeX_argument-4.R Saving _problems/test_extract_LaTeX_argument-11.R Saving _problems/test_extract_LaTeX_argument-19.R Saving _problems/test_extract_LaTeX_argument-35.R Saving _problems/test_extract_LaTeX_argument-58.R Saving _problems/test_extract_LaTeX_argument-78.R Saving _problems/test_extract_LaTeX_argument-107.R Saving _problems/test_extract_LaTeX_argument-121.R Saving _problems/test_extract_LaTeX_argument-145.R Saving _problems/test_extract_LaTeX_argument-159.R Saving _problems/test_extract_LaTeX_argument-167.R Saving _problems/test_extract_LaTeX_argument-181.R Saving _problems/test_extract_LaTeX_argument-197.R Saving _problems/test_extract_LaTeX_argument-209.R Saving _problems/test_extract_LaTeX_argument-219.R Saving _problems/test_fill_nth_LaTeX_argument-5.R Saving _problems/test_footnote_typography-13.R Saving _problems/test_footnote_typography-15.R Saving _problems/test_footnote_typography-17.R Saving _problems/test_footnote_typography-20.R Saving _problems/test_footnote_typography-22.R Saving _problems/test_footnote_typography-25.R Saving _problems/test_footnote_typography-30.R Saving _problems/test_footnote_typography-72.R Saving _problems/test_inputs_of-4.R Saving _problems/test_inputs_of-16.R Saving _problems/test_locate_footcite_punctuation-6.R Saving _problems/test_parse_tex-15.R Saving _problems/test_parse_tex-26.R Saving _problems/test_parse_tex-32.R Saving _problems/test_parse_tex-39.R Saving _problems/test_read_tex_document-21.R Saving _problems/test_sort_bib-8.R Saving _problems/test_spellcheck-13.R Saving _problems/test_spellcheck-18.R Saving _problems/test_spellcheck-26.R Saving _problems/test_spellcheck-35.R Saving _problems/test_spellcheck-39.R Saving _problems/test_spellcheck-41.R Saving _problems/test_spellcheck-43.R Saving _problems/test_spellcheck-56.R Saving _problems/test_spellcheck-57.R Saving _problems/test_spellcheck-65.R Saving _problems/test_spellcheck-67.R Saving _problems/test_spellcheck-71.R Saving _problems/test_spellcheck-72.R Saving _problems/test_spellcheck-73.R Saving _problems/test_spellcheck-74.R Saving _problems/test_spellcheck-75.R Saving _problems/test_spellcheck-79.R Saving _problems/test_spellcheck-94.R Saving _problems/test_spellcheck-98.R Saving _problems/test_spellcheck-103.R Saving _problems/test_spellcheck-117.R Saving _problems/test_spellcheck-128.R Saving _problems/test_spellcheck-139.R Saving _problems/test_spellcheck-146.R Saving _problems/test_spellcheck-150.R Saving _problems/test_spellcheck-162.R Saving _problems/test_spellcheck-176.R Saving _problems/test_spellcheck_0-6-2-6.R Saving _problems/test_spellcheck_0-6-2-8.R Saving _problems/test_spellcheck_0-7-0-13.R Saving _problems/test_utils-71.R Saving _problems/test_validate_bibliography-5.R Saving _problems/test_validate_bibliography-6.R Key: <key> key Author Title date <char> <char> <char> <char> 1: RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status <NA> 2: RMS2010Hunter RMS, NSW hunter expressway – current status <NA> year <char> 1: 2010 2: 2010 Key: <key> key Author Title date year <char> <char> <char> <char> <char> 1: Treasury2014TES2013 Treasury tax expenditures statement 2013 <NA> 2014 2: Treasury2014f Treasury tax expenditures statement 2013 <NA> 2014 line_no x field <int> <char> <char> 1: 1 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key 2: 9 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key value is_key <char> <lgcl> 1: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE 2: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE key_value bib_file <char> <char> 1: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib 2: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib bib_file line_no key value authors <char> <int> <char> <char> <char> 1: validate-bib/near-dup-authors.bib 8 VicRoadsr VicRoads VicRoads Each field line in .bib must end with a comma (to allow reordering). ✖ 6: volume = {6} author = {Australian Taxation Office},✖ Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Saving _problems/test_veto_sic-62.R [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • Not yet implemented (1): 'test_split_report.R:4:3' • On CRAN (11): 'test-zzz-check-pkgs-spelling.R:4:3', 'test_check_biber.R:5:3', 'test_check_biber.R:26:3', 'test_check_dashes.R:39:3', 'test_check_labels.R:29:3', 'test_minimal_bib.R:4:3', 'test_spellcheck.R:107:3', 'test_spellcheck.R:198:3', 'test_utils.R:47:3', 'test_zReports.R:4:3', 'test_zReports.R:32:3' • Too noisy (1): 'test_check_consecutive_words.R:4:3' • empty test (1): 'test_replace_LaTeX_argument.R:27:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-locate_latex_argument.R:5:3'): Locations ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(Line1) at test-locate_latex_argument.R:5:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-locate_latex_argument.R:16:3'): Issue 73 ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) at test-locate_latex_argument.R:16:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:4:3'): Extract textbf ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:4:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:11:3'): Extract textcites ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:11:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:18:3'): Extract nested ──────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:18:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:32:3'): Optional argument ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:32:3 2. └─TeXCheckR::extract_optional_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:58:3'): Multi-line starred ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:58:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:78:3'): Multi-line ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:78:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:107:3'): Optional argument interference ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_extract_LaTeX_argument.R:107:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::extract_mandatory_LaTeX_argument("\\abc{def}", "abc") 5. └─TeXCheckR::parse_tex(tex_lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:121:3'): Multi-lines ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:121:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:144:3'): Road congestion example ────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:144:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:159:3'): Whitespace gobbling ────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:159:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:167:3'): Optional argument ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_optional_LaTeX_argument(...) at test_extract_LaTeX_argument.R:167:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:181:3'): Argument requested but missing ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:181:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:197:3'): Environments ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:197:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:209:3'): Optional containing square brackets ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:209:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:219:3'): % et sqq should not be included in extract ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:219:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_fill_nth_LaTeX_argument.R:5:3'): Known results ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR:::fill_nth_LaTeX_argument(...) at test_fill_nth_LaTeX_argument.R:5:3 2. │ └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(y1) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:12:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:12: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:14:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:14: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:16:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/notok-end-itemize.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:16: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/notok-end-itemize.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:19:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnote" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:19: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:21:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation mark after footcite" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:21: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:24:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/colon-then-equation.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnotemark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:24: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/colon-then-equation.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:28:3'): Invalid typography stops ─────── Expected `tryCatch(...)` to produce output. ── Failure ('test_footnote_typography.R:71:3'): Footcites and footcite in same document don't get confused about dots after ── `check_footnote_typography("./fnote-typogr/dot-after-footcites.tex")` threw an error with unexpected message. Expected match: "Punctuation mark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:71: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/dot-after-footcites.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_inputs_of.R:4:3'): Inputs of (no preamble) ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of("extract/road-congestion.tex") at test_inputs_of.R:4:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_inputs_of.R:14:3'): Includes x ───────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of(...) at test_inputs_of.R:14:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_locate_footcite_punctuation.R:6:3'): Finds correct location ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_footcite_punctuation(tex_lines = read_lines("locate_footcite_punctuation/1.tex")) at test_locate_footcite_punctuation.R:6:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:15:3'): parse_tex single group ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:15:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:26:3'): GRP_ID identifies group ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:26:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:31:3'): Verify % is not parsed ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:31:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("A {", "f ", "Z}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:38:3'): Parse tiny documents ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("", "A{B}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_read_tex_document.R:21:3'): Reads file with spaces before input ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::read_tex_document(tempf) at test_read_tex_document.R:21:3 2. │ └─... %>% .subset2("extract") 3. └─TeXCheckR::extract_mandatory_LaTeX_argument(., "input") 4. └─TeXCheckR::parse_tex(tex_lines) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_sort_bib.R:7:3'): sort bib correctly sorts ───────────────────── Error in ``[.data.table`(., , `:=`(intra_key_line_no, seq_len(.N)), by = "key")`: attempt access index 13/13 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::reorder_bib("./sort-bib/incorrectly-sorted.bib", "./sort-bib/correctly-sorted-out.bib") at test_sort_bib.R:7:3 2. │ └─TeXCheckR::bib2DT(file.bib, to_sort = TRUE) 3. │ └─... %>% .[] 4. ├─data.table::setorder(., Surname, Date, title, field_name, Line_no) 5. │ └─base::is.data.frame(x) 6. ├─.[, `:=`(intra_key_line_no, seq_len(.N)), by = "key"] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:9:3'): School funding report checks out ─────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:9:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:17:3'): Check spelling of multiple input document ── `check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex")` threw an error with unexpected message. Expected match: "failed on above line" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:17: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. ├─TeXCheckR::check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:26:3'): Initalisms ──────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-defd-ok.tex")) at test_spellcheck.R:26:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-defd-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:35:3'): Initialism checking doesn't fail if at start of sentence ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-at-line-start.tex")) at test_spellcheck.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-at-line-start.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:39:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/add_to_dictionary-wrong.tex")` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:39: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. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-wrong.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:40:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/ignore_spelling_in-wrong.tex", pre_release = FALSE)` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:40: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. └─TeXCheckR::check_spelling(...) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:43:3'): Add to dictionary, ignore spelling in ───── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/add_to_dictionary-ok.tex")) at test_spellcheck.R:43:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:55:3'): Ignore spelling in input ──────────────── `check_spelling("./spelling/input/a.tex", pre_release = TRUE)` threw an error with unexpected message. Expected match: "Spellcheck failed on above line with .asofihsafioh" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:55: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. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = TRUE) 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:57:3'): Ignore spelling in input ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:57:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = FALSE) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:65:3'): Stop if present ───────────────────────── `check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex")` threw an error with unexpected message. Expected match: "skillset" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:65: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. ├─TeXCheckR::check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:67:3'): Stop if present ─────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./stop_if_present/should-not-stop.tex")) at test_spellcheck.R:67:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./stop_if_present/should-not-stop.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:71:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NSWgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:71: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. └─TeXCheckR::check_spelling("./spelling/Govt/NSWgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:72:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/ACTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:72: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. └─TeXCheckR::check_spelling("./spelling/Govt/ACTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:73:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:73: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. └─TeXCheckR::check_spelling("./spelling/Govt/NTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:74:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/Queenslandgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:74: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. └─TeXCheckR::check_spelling("./spelling/Govt/Queenslandgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:75:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/WAgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:75: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. └─TeXCheckR::check_spelling("./spelling/Govt/WAgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:79:3'): Some lower-case governments should not ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/Govt/ok-as-adj.tex")) at test_spellcheck.R:79:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/Govt/ok-as-adj.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:94:3'): 'percent' error should only occur in a Grattan report ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(percent_spellcheck.tex)) at test_spellcheck.R:94:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(percent_spellcheck.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:98:3'): Includepdf doesn't result in a failed include message ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/includepdf-ok.tex")) at test_spellcheck.R:98:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/includepdf-ok.tex") 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:103:3'): Should error ─────────────────────────── `check_spelling("spelling/typo-suggest.tex")` threw an error with unexpected message. Expected match: "Spellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:103: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. └─TeXCheckR::check_spelling("spelling/typo-suggest.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:116:3'): Inputs should respect dict_lang at top level ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:116:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling(...) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:128:3'): Lonesome footcites ───────────────────── `check_spelling(footcite.tex)` threw an error with unexpected message. Expected match: "[Ss]pellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(check_spelling(footcite.tex), regexp = "[Ss]pellcheck") at test_spellcheck.R:128: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. └─TeXCheckR::check_spelling(footcite.tex) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:139:3'): Multi-ignore ───────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3))) at test_spellcheck.R:139:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3)) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:145:3'): Like Energy-2018-WholesaleMarketPower ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:145:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:150:3'): Spellcheck verb ────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("spelling/verb.tex")) at test_spellcheck.R:150:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("spelling/verb.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:162:3'): pre-release + add to dictionary outside ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempfile.tex, pre_release = FALSE)) at test_spellcheck.R:162:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempfile.tex, pre_release = FALSE) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:176:3'): known.correct.fixed ────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:176:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck_0-6-2.R:5:3'): grattanReporter #113 ─────────────── `check_spelling("spelling/ignore_113.tex")` threw an error with unexpected message. Expected match: "failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck_0-6-2.R:5: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. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-6-2.R:7:3'): grattanReporter #113 ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck_0-6-2.R:7:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex", ignore_spelling_in_nth = list(foo = 1:2)) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-7-0.R:13:3'): Possessive apostrophes don't trigger false positives ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempf.tex)) at test_spellcheck_0-7-0.R:13:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempf.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_utils.R:67:3'): transpose ────────────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─parse_tex(c("A{}", "B[a]{b{c}{d}}z")) %>% ... at test_utils.R:67:3 2. └─TeXCheckR::parse_tex(c("A{}", "B[a]{b{c}{d}}z")) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Failure ('test_validate_bibliography.R:4:3'): Bills of Parliament ─────────── `validate_bibliography(file = "./validate-bib/invalid-Bill.bib")` threw an error with unexpected message. Expected match: "Bills? of Parliament" Actual message: "attempt access index 2/2 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_validate_bibliography.R:4: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. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-Bill.bib") 7. │ └─... %>% .[newspaper_by_url] 8. ├─data.table::setkey(., journal_from_url) 9. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 10. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:6:3'): Bills of Parliament ───────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(validate_bibliography(file = "./validate-bib/valid-Bill.bib")) at test_validate_bibliography.R:6:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/valid-Bill.bib") 5. │ └─... %>% .[newspaper_by_url] 6. ├─data.table::setkey(., journal_from_url) 7. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 8. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:50:5'): Hypercorrected mendeleys ─────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:50:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-hypercorrected.bib") 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:85:5'): DOI ──────────────────────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:85:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = doi_bib) 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_veto_sic.R:62:3'): With check_spelling ───────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/sic/sic-vetoes.tex")) at test_veto_sic.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/sic/sic-vetoes.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.8.1
Check: tests
Result: ERROR Running ‘testthat.R’ [29s/36s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(TeXCheckR) > > test_check("TeXCheckR") Saving _problems/test-locate_latex_argument-5.R Saving _problems/test-locate_latex_argument-16.R ✖ 4: \chapter{A chapter with wrong prefix}\label{sec:should-be-chap:}✖ 4: \chapter{A chapter without a label}Saving _problems/test_extract_LaTeX_argument-4.R Saving _problems/test_extract_LaTeX_argument-11.R Saving _problems/test_extract_LaTeX_argument-19.R Saving _problems/test_extract_LaTeX_argument-35.R Saving _problems/test_extract_LaTeX_argument-58.R Saving _problems/test_extract_LaTeX_argument-78.R Saving _problems/test_extract_LaTeX_argument-107.R Saving _problems/test_extract_LaTeX_argument-121.R Saving _problems/test_extract_LaTeX_argument-145.R Saving _problems/test_extract_LaTeX_argument-159.R Saving _problems/test_extract_LaTeX_argument-167.R Saving _problems/test_extract_LaTeX_argument-181.R Saving _problems/test_extract_LaTeX_argument-197.R Saving _problems/test_extract_LaTeX_argument-209.R Saving _problems/test_extract_LaTeX_argument-219.R Saving _problems/test_fill_nth_LaTeX_argument-5.R Saving _problems/test_footnote_typography-13.R Saving _problems/test_footnote_typography-15.R Saving _problems/test_footnote_typography-17.R Saving _problems/test_footnote_typography-20.R Saving _problems/test_footnote_typography-22.R Saving _problems/test_footnote_typography-25.R Saving _problems/test_footnote_typography-30.R Saving _problems/test_footnote_typography-72.R Saving _problems/test_inputs_of-4.R Saving _problems/test_inputs_of-16.R Saving _problems/test_locate_footcite_punctuation-6.R Saving _problems/test_parse_tex-15.R Saving _problems/test_parse_tex-26.R Saving _problems/test_parse_tex-32.R Saving _problems/test_parse_tex-39.R Saving _problems/test_read_tex_document-21.R Saving _problems/test_sort_bib-8.R Saving _problems/test_spellcheck-13.R Saving _problems/test_spellcheck-18.R Saving _problems/test_spellcheck-26.R Saving _problems/test_spellcheck-35.R Saving _problems/test_spellcheck-39.R Saving _problems/test_spellcheck-41.R Saving _problems/test_spellcheck-43.R Saving _problems/test_spellcheck-56.R Saving _problems/test_spellcheck-57.R Saving _problems/test_spellcheck-65.R Saving _problems/test_spellcheck-67.R Saving _problems/test_spellcheck-71.R Saving _problems/test_spellcheck-72.R Saving _problems/test_spellcheck-73.R Saving _problems/test_spellcheck-74.R Saving _problems/test_spellcheck-75.R Saving _problems/test_spellcheck-79.R Saving _problems/test_spellcheck-94.R Saving _problems/test_spellcheck-98.R Saving _problems/test_spellcheck-103.R Saving _problems/test_spellcheck-117.R Saving _problems/test_spellcheck-128.R Saving _problems/test_spellcheck-139.R Saving _problems/test_spellcheck-146.R Saving _problems/test_spellcheck-150.R Saving _problems/test_spellcheck-162.R Saving _problems/test_spellcheck-176.R Saving _problems/test_spellcheck_0-6-2-6.R Saving _problems/test_spellcheck_0-6-2-8.R Saving _problems/test_spellcheck_0-7-0-13.R Saving _problems/test_utils-71.R Saving _problems/test_validate_bibliography-5.R Saving _problems/test_validate_bibliography-6.R Key: <key> key Author Title date <char> <char> <char> <char> 1: RMS2010-Hunter-EXPWY RMS, NSW hunter expressway – current status <NA> 2: RMS2010Hunter RMS, NSW hunter expressway – current status <NA> year <char> 1: 2010 2: 2010 Key: <key> key Author Title date year <char> <char> <char> <char> <char> 1: Treasury2014TES2013 Treasury tax expenditures statement 2013 <NA> 2014 2: Treasury2014f Treasury tax expenditures statement 2013 <NA> 2014 line_no x field <int> <char> <char> 1: 1 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key 2: 9 key\tArticle{Terrill-2017-theConvo-Melbourne-vs-Sydney, key value is_key <char> <lgcl> 1: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE 2: Article{Terrill-2017-theConvo-Melbourne-vs-Sydney, TRUE key_value bib_file <char> <char> 1: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib 2: terrill-2017-theconvo-melbourne-vs-sydney, ./validate-bib/dup-key.bib bib_file line_no key value authors <char> <int> <char> <char> <char> 1: validate-bib/near-dup-authors.bib 8 VicRoadsr VicRoads VicRoads Each field line in .bib must end with a comma (to allow reordering). ✖ 6: volume = {6} author = {Australian Taxation Office},✖ Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Field <title> in entry <BlakersLuStocks2017> contains unescaped %. ✖ 4: title = {100% renewable electricity in Australia}, ^^ Insert a backslash before this %. Saving _problems/test_veto_sic-62.R [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • Not yet implemented (1): 'test_split_report.R:4:3' • On CRAN (11): 'test-zzz-check-pkgs-spelling.R:4:3', 'test_check_biber.R:5:3', 'test_check_biber.R:26:3', 'test_check_dashes.R:39:3', 'test_check_labels.R:29:3', 'test_minimal_bib.R:4:3', 'test_spellcheck.R:107:3', 'test_spellcheck.R:198:3', 'test_utils.R:47:3', 'test_zReports.R:4:3', 'test_zReports.R:32:3' • Too noisy (1): 'test_check_consecutive_words.R:4:3' • empty test (1): 'test_replace_LaTeX_argument.R:27:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-locate_latex_argument.R:5:3'): Locations ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(Line1) at test-locate_latex_argument.R:5:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-locate_latex_argument.R:16:3'): Issue 73 ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) at test-locate_latex_argument.R:16:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:4:3'): Extract textbf ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:4:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:11:3'): Extract textcites ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:11:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:18:3'): Extract nested ──────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:18:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:32:3'): Optional argument ───────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:32:3 2. └─TeXCheckR::extract_optional_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:58:3'): Multi-line starred ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_LaTeX_argument(...) at test_extract_LaTeX_argument.R:58:3 2. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(tex_lines) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:78:3'): Multi-line ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:78:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:107:3'): Optional argument interference ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_extract_LaTeX_argument.R:107:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::extract_mandatory_LaTeX_argument("\\abc{def}", "abc") 5. └─TeXCheckR::parse_tex(tex_lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:121:3'): Multi-lines ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:121:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:144:3'): Road congestion example ────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:144:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:159:3'): Whitespace gobbling ────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:159:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:167:3'): Optional argument ──────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_optional_LaTeX_argument(...) at test_extract_LaTeX_argument.R:167:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:181:3'): Argument requested but missing ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:181:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:197:3'): Environments ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:197:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:209:3'): Optional containing square brackets ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:209:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_extract_LaTeX_argument.R:219:3'): % et sqq should not be included in extract ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::extract_mandatory_LaTeX_argument(...) at test_extract_LaTeX_argument.R:219:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_fill_nth_LaTeX_argument.R:5:3'): Known results ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR:::fill_nth_LaTeX_argument(...) at test_fill_nth_LaTeX_argument.R:5:3 2. │ └─TeXCheckR:::locate_mandatory_LaTeX_argument(...) 3. └─TeXCheckR::parse_tex(y1) 4. ├─...[] 5. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:12:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:12: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:14:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:14: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/doesnt-end-with-period-multiline.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:16:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/notok-end-itemize.tex")` threw an error with unexpected message. Expected match: "does not end with full stop" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:16: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. ├─TeXCheckR::check_footnote_typography("./fnote-typogr/notok-end-itemize.tex") 7. │ └─... %>% ... 8. └─TeXCheckR::parse_tex(orig_lines) 9. ├─...[] 10. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:19:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnote" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:19: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:21:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation mark after footcite" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:21: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/full-stop-after-fcite.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:24:3'): Invalid typography stops ─────── `check_footnote_typography("./fnote-typogr/colon-then-equation.tex")` threw an error with unexpected message. Expected match: "[pP]unctuation after footnotemark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:24: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/colon-then-equation.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_footnote_typography.R:28:3'): Invalid typography stops ─────── Expected `tryCatch(...)` to produce output. ── Failure ('test_footnote_typography.R:71:3'): Footcites and footcite in same document don't get confused about dots after ── `check_footnote_typography("./fnote-typogr/dot-after-footcites.tex")` threw an error with unexpected message. Expected match: "Punctuation mark" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_footnote_typography.R:71: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. └─TeXCheckR::check_footnote_typography("./fnote-typogr/dot-after-footcites.tex") 7. └─TeXCheckR::parse_tex(orig_lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_inputs_of.R:4:3'): Inputs of (no preamble) ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of("extract/road-congestion.tex") at test_inputs_of.R:4:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_inputs_of.R:14:3'): Includes x ───────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::inputs_of(...) at test_inputs_of.R:14:3 2. │ ├─... %>% rbindlist 3. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 4. │ └─TeXCheckR (local) FUN(X[[i]], ...) 5. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 6. │ └─TeXCheckR::parse_tex(tex_lines) 7. │ ├─...[] 8. │ └─data.table:::`[.data.table`(...) 9. └─data.table::rbindlist(.) ── Error ('test_locate_footcite_punctuation.R:6:3'): Finds correct location ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR:::locate_footcite_punctuation(tex_lines = read_lines("locate_footcite_punctuation/1.tex")) at test_locate_footcite_punctuation.R:6:3 2. └─TeXCheckR::parse_tex(tex_lines) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:15:3'): parse_tex single group ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:15:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:26:3'): GRP_ID identifies group ──────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. └─TeXCheckR::parse_tex(x) at test_parse_tex.R:26:3 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:31:3'): Verify % is not parsed ───────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:31:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("A {", "f ", "Z}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_parse_tex.R:38:3'): Parse tiny documents ─────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_identical(...) at test_parse_tex.R:38:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::parse_tex(c("", "A{B}")) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_read_tex_document.R:21:3'): Reads file with spaces before input ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::read_tex_document(tempf) at test_read_tex_document.R:21:3 2. │ └─... %>% .subset2("extract") 3. └─TeXCheckR::extract_mandatory_LaTeX_argument(., "input") 4. └─TeXCheckR::parse_tex(tex_lines) 5. ├─...[] 6. └─data.table:::`[.data.table`(...) ── Error ('test_sort_bib.R:7:3'): sort bib correctly sorts ───────────────────── Error in ``[.data.table`(., , `:=`(intra_key_line_no, seq_len(.N)), by = "key")`: attempt access index 13/13 in VECTOR_ELT Backtrace: ▆ 1. ├─TeXCheckR::reorder_bib("./sort-bib/incorrectly-sorted.bib", "./sort-bib/correctly-sorted-out.bib") at test_sort_bib.R:7:3 2. │ └─TeXCheckR::bib2DT(file.bib, to_sort = TRUE) 3. │ └─... %>% .[] 4. ├─data.table::setorder(., Surname, Date, title, field_name, Line_no) 5. │ └─base::is.data.frame(x) 6. ├─.[, `:=`(intra_key_line_no, seq_len(.N)), by = "key"] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:9:3'): School funding report checks out ─────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:9:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:17:3'): Check spelling of multiple input document ── `check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex")` threw an error with unexpected message. Expected match: "failed on above line" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:17: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. ├─TeXCheckR::check_spelling("./spellcheck_multi_input/spellcheck_multi_input.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:26:3'): Initalisms ──────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-defd-ok.tex")) at test_spellcheck.R:26:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-defd-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:35:3'): Initialism checking doesn't fail if at start of sentence ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/abbrev/abbrev-at-line-start.tex")) at test_spellcheck.R:35:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/abbrev/abbrev-at-line-start.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:39:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/add_to_dictionary-wrong.tex")` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:39: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. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-wrong.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:40:3'): Add to dictionary, ignore spelling in ─── `check_spelling("./spelling/ignore_spelling_in-wrong.tex", pre_release = FALSE)` threw an error with unexpected message. Expected match: "[Ss]pellcheck failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:40: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. └─TeXCheckR::check_spelling(...) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:43:3'): Add to dictionary, ignore spelling in ───── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/add_to_dictionary-ok.tex")) at test_spellcheck.R:43:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/add_to_dictionary-ok.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:55:3'): Ignore spelling in input ──────────────── `check_spelling("./spelling/input/a.tex", pre_release = TRUE)` threw an error with unexpected message. Expected match: "Spellcheck failed on above line with .asofihsafioh" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:55: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. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = TRUE) 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:57:3'): Ignore spelling in input ────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:57:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/input/a.tex", pre_release = FALSE) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:65:3'): Stop if present ───────────────────────── `check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex")` threw an error with unexpected message. Expected match: "skillset" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:65: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. ├─TeXCheckR::check_spelling("./stop_if_present_inputs/stop-if-held-in-inputs.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck.R:67:3'): Stop if present ─────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./stop_if_present/should-not-stop.tex")) at test_spellcheck.R:67:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./stop_if_present/should-not-stop.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:71:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NSWgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:71: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. └─TeXCheckR::check_spelling("./spelling/Govt/NSWgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:72:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/ACTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:72: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. └─TeXCheckR::check_spelling("./spelling/Govt/ACTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:73:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/NTgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:73: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. └─TeXCheckR::check_spelling("./spelling/Govt/NTgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:74:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/Queenslandgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:74: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. └─TeXCheckR::check_spelling("./spelling/Govt/Queenslandgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck.R:75:3'): Lower-case governments should error ───── `check_spelling("./spelling/Govt/WAgovt.tex")` threw an error with unexpected message. Expected match: "uppercase G" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:75: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. └─TeXCheckR::check_spelling("./spelling/Govt/WAgovt.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:79:3'): Some lower-case governments should not ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/Govt/ok-as-adj.tex")) at test_spellcheck.R:79:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/Govt/ok-as-adj.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:94:3'): 'percent' error should only occur in a Grattan report ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(percent_spellcheck.tex)) at test_spellcheck.R:94:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(percent_spellcheck.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:98:3'): Includepdf doesn't result in a failed include message ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/includepdf-ok.tex")) at test_spellcheck.R:98:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("./spelling/includepdf-ok.tex") 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:103:3'): Should error ─────────────────────────── `check_spelling("spelling/typo-suggest.tex")` threw an error with unexpected message. Expected match: "Spellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck.R:103: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. └─TeXCheckR::check_spelling("spelling/typo-suggest.tex") 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:116:3'): Inputs should respect dict_lang at top level ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:116:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling(...) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Failure ('test_spellcheck.R:128:3'): Lonesome footcites ───────────────────── `check_spelling(footcite.tex)` threw an error with unexpected message. Expected match: "[Ss]pellcheck" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(check_spelling(footcite.tex), regexp = "[Ss]pellcheck") at test_spellcheck.R:128: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. └─TeXCheckR::check_spelling(footcite.tex) 7. └─TeXCheckR::parse_tex(lines) 8. ├─...[] 9. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:139:3'): Multi-ignore ───────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3))) at test_spellcheck.R:139:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(multi.tex, ignore_spelling_in_nth = list(mymulticmd = 2:3)) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:145:3'): Like Energy-2018-WholesaleMarketPower ──── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:145:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:150:3'): Spellcheck verb ────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("spelling/verb.tex")) at test_spellcheck.R:150:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("spelling/verb.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:162:3'): pre-release + add to dictionary outside ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempfile.tex, pre_release = FALSE)) at test_spellcheck.R:162:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempfile.tex, pre_release = FALSE) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_spellcheck.R:176:3'): known.correct.fixed ────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck.R:176:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(...) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Failure ('test_spellcheck_0-6-2.R:5:3'): grattanReporter #113 ─────────────── `check_spelling("spelling/ignore_113.tex")` threw an error with unexpected message. Expected match: "failed" Actual message: "attempt access index 11/11 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_spellcheck_0-6-2.R:5: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. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex") 7. │ └─TeXCheckR::inputs_of(filename) 8. │ ├─... %>% rbindlist 9. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 10. │ └─TeXCheckR (local) FUN(X[[i]], ...) 11. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 12. │ └─TeXCheckR::parse_tex(tex_lines) 13. │ ├─...[] 14. │ └─data.table:::`[.data.table`(...) 15. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-6-2.R:7:3'): grattanReporter #113 ───────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(...) at test_spellcheck_0-6-2.R:7:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::check_spelling("spelling/ignore_113.tex", ignore_spelling_in_nth = list(foo = 1:2)) 5. │ └─TeXCheckR::inputs_of(filename) 6. │ ├─... %>% rbindlist 7. │ └─base::lapply(c("input", "include"), extract_LaTeX_argument, tex_lines = lines_with_possible_inputs) 8. │ └─TeXCheckR (local) FUN(X[[i]], ...) 9. │ └─TeXCheckR::extract_mandatory_LaTeX_argument(...) 10. │ └─TeXCheckR::parse_tex(tex_lines) 11. │ ├─...[] 12. │ └─data.table:::`[.data.table`(...) 13. └─data.table::rbindlist(.) ── Error ('test_spellcheck_0-7-0.R:13:3'): Possessive apostrophes don't trigger false positives ── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling(tempf.tex)) at test_spellcheck_0-7-0.R:13:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling(tempf.tex) 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) ── Error ('test_utils.R:67:3'): transpose ────────────────────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─parse_tex(c("A{}", "B[a]{b{c}{d}}z")) %>% ... at test_utils.R:67:3 2. └─TeXCheckR::parse_tex(c("A{}", "B[a]{b{c}{d}}z")) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Failure ('test_validate_bibliography.R:4:3'): Bills of Parliament ─────────── `validate_bibliography(file = "./validate-bib/invalid-Bill.bib")` threw an error with unexpected message. Expected match: "Bills? of Parliament" Actual message: "attempt access index 2/2 in VECTOR_ELT" Backtrace: ▆ 1. ├─testthat::expect_error(...) at test_validate_bibliography.R:4: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. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-Bill.bib") 7. │ └─... %>% .[newspaper_by_url] 8. ├─data.table::setkey(., journal_from_url) 9. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 10. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:6:3'): Bills of Parliament ───────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(validate_bibliography(file = "./validate-bib/valid-Bill.bib")) at test_validate_bibliography.R:6:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/valid-Bill.bib") 5. │ └─... %>% .[newspaper_by_url] 6. ├─data.table::setkey(., journal_from_url) 7. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 8. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:50:5'): Hypercorrected mendeleys ─────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:50:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = "./validate-bib/invalid-hypercorrected.bib") 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_validate_bibliography.R:85:5'): DOI ──────────────────────────── Error in ``[.data.table`(., , `:=`(is_article, any(grepl("^@Article", text))), by = entry_no)`: attempt access index 2/2 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_output(...) at test_validate_bibliography.R:85:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─testthat::capture_output_lines(code, print, width = width) 5. │ │ └─testthat:::eval_with_output(code, print = print, width = width) 6. │ │ ├─withr::with_output_sink(path, withVisible(code)) 7. │ │ │ └─base::force(code) 8. │ │ └─base::withVisible(code) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. ├─TeXCheckR::validate_bibliography(file = doi_bib) 11. │ └─... %>% .[newspaper_by_url] 12. ├─data.table::setkey(., journal_from_url) 13. ├─.[, `:=`(is_article, any(grepl("^@Article", text))), by = entry_no] 14. └─data.table:::`[.data.table`(...) ── Error ('test_veto_sic.R:62:3'): With check_spelling ───────────────────────── Error in ``[.data.table`(out, tex_group == j, `:=`((GROUP_IDj), .GRP), by = c("optional_tex_group", tgj))`: attempt access index 11/11 in VECTOR_ELT Backtrace: ▆ 1. ├─testthat::expect_null(check_spelling("./spelling/sic/sic-vetoes.tex")) at test_veto_sic.R:62:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─TeXCheckR::check_spelling("./spelling/sic/sic-vetoes.tex") 5. └─TeXCheckR::parse_tex(lines) 6. ├─...[] 7. └─data.table:::`[.data.table`(...) [ FAIL 71 | WARN 0 | SKIP 14 | PASS 196 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc