Last updated on 2025-12-21 17:51:21 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| DRDID | 13 | ||
| staggered | 4 | 2 | 7 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 4, NOTE: 2, OK: 7
Version: 1.2.2
Check: examples
Result: ERROR
Running examples in ‘staggered-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: balance_checks
> ### Title: Calculate balance checks in staggered rollout designs
> ### Aliases: balance_checks
>
> ### ** Examples
>
> ## Don't show:
> # restrict threads for CRAN compliance
> dt_threads <- data.table::getDTthreads()
> data.table::setDTthreads(1)
> ## End(Don't show)
>
> set.seed(1234)
> # load the officer data and subset it
> df <- pj_officer_level_balanced
> group_random <- sample(unique(df$assigned), 3)
> df <- df[df$assigned %in% group_random,]
> # Calculate balance checks for simple aggregation
> balance_checks(df = df,
+ i = "uid",
+ t = "period",
+ g = "first_trained",
+ y = "complaints",
+ estimand = "simple")
Error in `[.data.table`(df, , `:=`(numPeriods_i, base::length(t)), by = .(i)) :
attempt access index 4/4 in VECTOR_ELT
Calls: balance_checks -> balance_df -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 1.2.2
Check: examples
Result: ERROR
Running examples in ‘staggered-Ex.R’ failed
The error most likely occurred in:
> ### Name: balance_checks
> ### Title: Calculate balance checks in staggered rollout designs
> ### Aliases: balance_checks
>
> ### ** Examples
>
> ## Don't show:
> # restrict threads for CRAN compliance
> dt_threads <- data.table::getDTthreads()
> data.table::setDTthreads(1)
> ## End(Don't show)
>
> set.seed(1234)
> # load the officer data and subset it
> df <- pj_officer_level_balanced
> group_random <- sample(unique(df$assigned), 3)
> df <- df[df$assigned %in% group_random,]
> # Calculate balance checks for simple aggregation
> balance_checks(df = df,
+ i = "uid",
+ t = "period",
+ g = "first_trained",
+ y = "complaints",
+ estimand = "simple")
Error in `[.data.table`(df, , `:=`(numPeriods_i, base::length(t)), by = .(i)) :
attempt access index 4/4 in VECTOR_ELT
Calls: balance_checks -> balance_df -> [ -> [.data.table
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 1.2.2
Check: installed package size
Result: NOTE
installed size is 35.7Mb
sub-directories of 1Mb or more:
libs 35.1Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64