- 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 ‘eventPred/DESCRIPTION’ ... OK
- this is package ‘eventPred’ version ‘0.2.9’
- 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 ‘eventPred’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... 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 ... [5s/7s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [4s/7s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/7s] OK
- checking loading without being on the library search path ... [5s/7s] 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 ... [40s/57s] OK
- checking Rd files ... [1s/1s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [7s/10s] ERROR
Running examples in ‘eventPred-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: getPrediction
> ### Title: Enrollment and event prediction
> ### Aliases: getPrediction
>
> ### ** Examples
>
> # Event prediction after enrollment completion
> set.seed(3000)
>
> pred <- getPrediction(
+ df = interimData2, to_predict = "event only",
+ target_d = 200,
+ event_model = "weibull",
+ dropout_model = "exponential",
+ pilevel = 0.90, nreps = 100)
Error in `[.data.table`(newEvents[get("event") == 1], do.call("order", :
attempt access index 7/7 in VECTOR_ELT
Calls: getPrediction -> predictEvent -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [28s/22s] ERROR
Running ‘testthat.R’ [28s/21s]
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(eventPred)
>
> test_check("eventPred")
Saving _problems/test-getPrediction-30.R
Saving _problems/test-getPrediction-51.R
Saving _problems/test-getPrediction-69.R
Saving _problems/test-predictEvent-33.R
Saving _problems/test-predictEvent-74.R
Saving _problems/test-predictEvent-102.R
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 28 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-getPrediction.R:21:3'): event prediction at design stage ───────
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::getPrediction(...) at test-getPrediction.R:21:3
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-getPrediction.R:42:3'): event prediction during enrollment phase ──
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::getPrediction(...) at test-getPrediction.R:42:3
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-getPrediction.R:63:3'): event prediction after enrollment completion ──
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::getPrediction(...) at test-getPrediction.R:63:3
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
── Error ('test-predictEvent.R:27:3'): event prediction at design stage ────────
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::predictEvent(...) at test-predictEvent.R:27:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-predictEvent.R:68:3'): event prediction during enrollment stage ──
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::predictEvent(...) at test-predictEvent.R:68:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-predictEvent.R:97:3'): event prediction after enrollment completion ──
Error in ``[.data.table`(newEvents[get("event") == 1], do.call("order", lapply(c("draw", "totalTime"), as.name)), `:=`(n = seq_len(.N)), by = "draw")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─eventPred::predictEvent(...) at test-predictEvent.R:97:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 6 | WARN 0 | SKIP 0 | PASS 28 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [76s/73s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘event_prediction_after_enrollment_completion.Rmd’ using rmarkdown
Quitting from event_prediction_after_enrollment_completion.Rmd:28-40 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─eventPred::getPrediction(...)
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'event_prediction_after_enrollment_completion.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘event_prediction_after_enrollment_completion.Rmd’
--- re-building ‘event_prediction_at_the_design_stage.Rmd’ using rmarkdown
Quitting from event_prediction_at_the_design_stage.Rmd:69-83 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 9/9 in VECTOR_ELT
---
Backtrace:
▆
1. └─eventPred::getPrediction(...)
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'event_prediction_at_the_design_stage.Rmd' failed with diagnostics:
attempt access index 9/9 in VECTOR_ELT
--- failed re-building ‘event_prediction_at_the_design_stage.Rmd’
--- re-building ‘event_prediction_before_enrollment_completion.Rmd’ using rmarkdown
Quitting from event_prediction_before_enrollment_completion.Rmd:27-40 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─eventPred::getPrediction(...)
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'event_prediction_before_enrollment_completion.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘event_prediction_before_enrollment_completion.Rmd’
--- re-building ‘event_prediction_incorporating_covariates.Rmd’ using rmarkdown
Quitting from event_prediction_incorporating_covariates.Rmd:28-45 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─eventPred::getPrediction(...)
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'event_prediction_incorporating_covariates.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘event_prediction_incorporating_covariates.Rmd’
--- re-building ‘event_prediction_incorporating_prior_information.Rmd’ using rmarkdown
Quitting from event_prediction_incorporating_prior_information.Rmd:27-48 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 7/7 in VECTOR_ELT
---
Backtrace:
▆
1. └─eventPred::getPrediction(...)
2. └─eventPred::predictEvent(...)
3. ├─...[]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'event_prediction_incorporating_prior_information.Rmd' failed with diagnostics:
attempt access index 7/7 in VECTOR_ELT
--- failed re-building ‘event_prediction_incorporating_prior_information.Rmd’
SUMMARY: processing the following files failed:
‘event_prediction_after_enrollment_completion.Rmd’
‘event_prediction_at_the_design_stage.Rmd’
‘event_prediction_before_enrollment_completion.Rmd’
‘event_prediction_incorporating_covariates.Rmd’
‘event_prediction_incorporating_prior_information.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/6s] OK
- checking HTML version of manual ... [3s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs