- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘akiFlagger/DESCRIPTION’ ... OK
- this is package ‘akiFlagger’ version ‘0.3.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘akiFlagger’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [2s/2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s/11s] OK
- checking Rd files ... [0s/0s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [2s/2s] ERROR
Running examples in ‘akiFlagger-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: returnAKIpatients
> ### Title: Flag patients for AKI
> ### Aliases: returnAKIpatients
>
> ### ** Examples
>
> returnAKIpatients(toy)
Error in `[.data.table`(df, , `:=`(min_creat48, sapply(.SD[, time], function(x) min(creatinine[between(.SD[, :
attempt access index 4/4 in VECTOR_ELT
Calls: returnAKIpatients -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/4s] ERROR
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(akiFlagger)
>
> test_check("akiFlagger")
Saving _problems/test-returnAKIpatients-24.R
Saving _problems/test-returnAKIpatients-45.R
Saving _problems/test-returnAKIpatients-71.R
Saving _problems/test-returnAKIpatients-96.R
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 2 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-returnAKIpatients.R:24:3'): Patient A - rolling minimum ────────
Error in ``[.data.table`(df, , `:=`(min_creat48, sapply(.SD[, time], function(x) min(creatinine[between(.SD[, time], x - window1, x)]))), by = patient_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─akiFlagger::returnAKIpatients(df) at test-returnAKIpatients.R:24:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-returnAKIpatients.R:45:3'): Patient A - historical baseline ────
Error in ``[.data.table`(df, , `:=`(min_creat48, sapply(.SD[, time], function(x) min(creatinine[between(.SD[, time], x - window1, x)]))), by = patient_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─akiFlagger::returnAKIpatients(df, HB_trumping = T) at test-returnAKIpatients.R:45:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-returnAKIpatients.R:71:3'): Patient B - rolling minimum ────────
Error in ``[.data.table`(df, , `:=`(min_creat48, sapply(.SD[, time], function(x) min(creatinine[between(.SD[, time], x - window1, x)]))), by = patient_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─akiFlagger::returnAKIpatients(df, HB_trumping = F) at test-returnAKIpatients.R:71:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-returnAKIpatients.R:96:3'): Patient B - historical baseline ────
Error in ``[.data.table`(df, , `:=`(min_creat48, sapply(.SD[, time], function(x) min(creatinine[between(.SD[, time], x - window1, x)]))), by = patient_id)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─akiFlagger::returnAKIpatients(df, HB_trumping = T) at test-returnAKIpatients.R:96:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 4 | WARN 0 | SKIP 0 | PASS 2 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs