Last updated on 2025-12-28 03:52:10 CET.
| Package | ERROR | OK |
|---|---|---|
| constellation | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 0.2.0
Check: examples
Result: ERROR
Running examples in 'constellation-Ex.R' failed
The error most likely occurred in:
> ### Name: incidents
> ### Title: Identify incident events separated by a minimum time window
> ### Aliases: incidents
>
> ### ** Examples
>
> library(data.table)
Attaching package: 'data.table'
The following object is masked from 'package:base':
%notin%
> systolic_bp <- as.data.table(vitals[VARIABLE == "SYSTOLIC_BP"])
> systolic_bp[, RECORDED_TIME := as.POSIXct(RECORDED_TIME,
+ format = "%Y-%m-%dT%H:%M:%SZ", tz = "UTC")]
>
> # Identify systolic blood pressure measurements for each patient that are
> # separated by at least 24 hours
> incidents(systolic_bp, window_hours = 24, join_key = "PAT_ID",
+ time_var = "RECORDED_TIME")
Error in `[.data.table`(data, , `:=`(KEEP, get(time_var) >= (get(time_var)[1] + :
attempt access index 4/4 in VECTOR_ELT
Calls: incidents -> [ -> [.data.table
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [3s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(constellation)
>
> test_check("constellation")
Saving _problems/test-incidents-47.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 107 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-incidents.R:45:3'): incidents produces expected values for test patient ──
Error in ``[.data.table`(data, , `:=`(KEEP, get(time_var) >= (get(time_var)[1] + window_hours * 60 * 60)), by = join_key)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-incidents.R:45:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─constellation::incidents(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 107 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 0.2.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
--- re-building 'identify_sepsis.Rmd' using rmarkdown
Quitting from identify_sepsis.Rmd:169-173 [sepsis_incidents]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
▆
1. └─constellation::incidents(...)
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'identify_sepsis.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building 'identify_sepsis.Rmd'
SUMMARY: processing the following file failed:
'identify_sepsis.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.