Last updated on 2025-12-21 11:50:27 CET.
| Package | ERROR | OK |
|---|---|---|
| TwoTimeScales | 3 | 10 |
Current CRAN status: ERROR: 3, OK: 10
Version: 1.0.0
Check: examples
Result: ERROR
Running examples in ‘TwoTimeScales-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: exposures_events_Lexis
> ### Title: Bin data on the Lexis diagram
> ### Aliases: exposures_events_Lexis
>
> ### ** Examples
>
> # ---- Bin colon cancer data by time since randomization and time since recurrence ----
> # First create vectors of bins (using function `make_bins()`)
> bins <- make_bins(t_out = reccolon2ts$timedc, s_out = reccolon2ts$timesr,
+ dt = 90, ds = 90)
`t_in` not provided. I will use `t_in = t_out - s_in`.
`s_in = NULL`. I will use `s_in = 0` for all observations.
> # Now bin data (note: the t_in and s_in arguments are omitted because data are not left truncated)
> bindata2d <- exposures_events_Lexis(t_out = reccolon2ts$timedc,
+ s_out = reccolon2ts$timesr, ev = reccolon2ts$status, bins = bins)
`t_in` not provided. I will use `t_in = t_out - s_in`.
`s_in = NULL`. I will use `s_in = 0` for all observations.
NOTE: entry.status has been set to 0 for all.
Error in `[.data.table`(l, , `:=`((tmp_ie), shift(.SD, n = 1, type = "lead")), :
attempt access index 6/6 in VECTOR_ELT
Calls: exposures_events_Lexis -> <Anonymous> -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.0.0
Check: examples
Result: ERROR
Running examples in ‘TwoTimeScales-Ex.R’ failed
The error most likely occurred in:
> ### Name: exposures_events_Lexis
> ### Title: Bin data on the Lexis diagram
> ### Aliases: exposures_events_Lexis
>
> ### ** Examples
>
> # ---- Bin colon cancer data by time since randomization and time since recurrence ----
> # First create vectors of bins (using function `make_bins()`)
> bins <- make_bins(t_out = reccolon2ts$timedc, s_out = reccolon2ts$timesr,
+ dt = 90, ds = 90)
`t_in` not provided. I will use `t_in = t_out - s_in`.
`s_in = NULL`. I will use `s_in = 0` for all observations.
> # Now bin data (note: the t_in and s_in arguments are omitted because data are not left truncated)
> bindata2d <- exposures_events_Lexis(t_out = reccolon2ts$timedc,
+ s_out = reccolon2ts$timesr, ev = reccolon2ts$status, bins = bins)
`t_in` not provided. I will use `t_in = t_out - s_in`.
`s_in = NULL`. I will use `s_in = 0` for all observations.
NOTE: entry.status has been set to 0 for all.
Error in `[.data.table`(l, , `:=`((tmp_ie), shift(.SD, n = 1, type = "lead")), :
attempt access index 6/6 in VECTOR_ELT
Calls: exposures_events_Lexis -> <Anonymous> -> [ -> [.data.table
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang