CRAN Package Check Results for Maintainer ‘Ishan Saran <ishansaran65 at gmail.com>’

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

Package ERROR OK
akiFlagger 4 9

Package akiFlagger

Current CRAN status: ERROR: 4, OK: 9

Version: 0.3.0
Check: examples
Result: 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 Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

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

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

Version: 0.3.0
Check: examples
Result: ERROR Running examples in ‘akiFlagger-Ex.R’ failed The error most likely occurred in: > ### 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 Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

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