Last updated on 2025-12-19 21:49:43 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 0.1.2 | 5.27 | 162.06 | 167.33 | OK | |
| r-devel-linux-x86_64-debian-gcc | 0.1.2 | 4.09 | 102.61 | 106.70 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 0.1.2 | 9.00 | 246.61 | 255.61 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 0.1.2 | 8.00 | 244.84 | 252.84 | OK | |
| r-devel-windows-x86_64 | 0.1.2 | 9.00 | 184.00 | 193.00 | OK | |
| r-patched-linux-x86_64 | 0.1.2 | 5.77 | 151.11 | 156.88 | OK | |
| r-release-linux-x86_64 | 0.1.2 | 4.41 | 149.83 | 154.24 | OK | |
| r-release-macos-arm64 | 0.1.2 | OK | ||||
| r-release-macos-x86_64 | 0.1.2 | 4.00 | 185.00 | 189.00 | OK | |
| r-release-windows-x86_64 | 0.1.2 | 8.00 | 179.00 | 187.00 | OK | |
| r-oldrel-macos-arm64 | 0.1.2 | OK | ||||
| r-oldrel-macos-x86_64 | 0.1.2 | 4.00 | 194.00 | 198.00 | OK | |
| r-oldrel-windows-x86_64 | 0.1.2 | 11.00 | 235.00 | 246.00 | OK |
Version: 0.1.2
Check: examples
Result: ERROR
Running examples in ‘NHSRwaitinglist-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: sim_patients
> ### Title: Generator of NHS patients
> ### Aliases: sim_patients
>
> ### ** Examples
>
> sim_patients()
Error in `[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, :
attempt access index 3/3 in VECTOR_ELT
Calls: sim_patients -> <Anonymous> -> [ -> [.data.table
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [16s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(NHSRwaitinglist)
>
> test_check("NHSRwaitinglist")
Saving _problems/test-sim_patients-3.R
Saving _problems/test-sim_patients-9.R
Saving _problems/test-sim_patients-20.R
Saving _problems/test-sim_patients-26.R
Saving _problems/test-sim_patients-40.R
Saving _problems/test-sim_patients-48.R
Saving _problems/test-sim_patients-54.R
Saving _problems/test-wl_simulator-34.R
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 395 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-sim_patients.R:3:3'): sim_patients generates the correct number of rows ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:3:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:9:3'): sim_patients returns the correct columns ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:9:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:20:3'): sim_patients handles missing start_date by using Sys.Date() ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 5) at test-sim_patients.R:20:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:26:3'): sim_patients assigns valid priority values ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:26:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:40:13'): sim_patients initializes 'Referral', 'Removal'
, and 'Withdrawal' as NA ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:40:13
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:48:3'): sim_patients assigns valid NHS numbers ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:48:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-sim_patients.R:54:3'): sim_patients generates random names for patients ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::sim_patients(n_rows = 10) at test-sim_patients.R:54:3
2. └─randomNames::randomNames(n_rows)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-wl_simulator.R:33:3'): wl_simulator works with detailed_sim = TRUE ──
Error in ``[.data.table`(tmp.dt, , `:=`(first_name, first_names(gender, ethnicity, .N)), by = list(gender, ethnicity))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─NHSRwaitinglist::wl_simulator(...) at test-wl_simulator.R:33:3
2. └─NHSRwaitinglist::sim_patients(length(referral), start_date)
3. └─randomNames::randomNames(n_rows)
4. ├─...[]
5. └─data.table:::`[.data.table`(...)
[ FAIL 8 | WARN 0 | SKIP 0 | PASS 395 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc