- using R Under development (unstable) (2025-12-20 r89211)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘xtdml/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘xtdml’ version ‘0.1.11’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/3s] 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 ‘xtdml’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [1s/2s] 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 ... [8s/10s] OK
- checking Rd files ... [0s/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 examples ... [3s/3s] ERROR
Running examples in ‘xtdml-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: xtdml_plr
> ### Title: DML Method for Partially Linear Panel Models
> ### Aliases: xtdml_plr
>
> ### ** Examples
>
> # An illustrative example using a regression tree (`rpart`)
> library(mlr3)
> library(rpart)
> library(mlr3tuning)
Loading required package: paradox
> set.seed(1234)
>
> # Generate simulated dataset
> data = make_plpr_data(n_obs = 100, t_per = 5, dim_x = 10, theta = 0.5, rho=0.8)
>
> x_cols = paste0("X", 1:10)
>
> # Set up DML data environment
> obj_xtdml_data = xtdml_data_from_data_frame(data,
+ x_cols = x_cols, y_col = "y", d_cols = "d",
+ panel_id = "id",
+ time_id = "time",
+ approach = "fd-exact")
>
> # Set up DML estimation environment
> learner = lrn("regr.rpart")
> ml_l = learner$clone()
> ml_m = learner$clone()
>
> obj_xtdml = xtdml_plr$new(obj_xtdml_data,
+ ml_l = ml_l, ml_m = ml_m,
+ score = "orth-PO", n_folds = 3)
> # Set up a list of parameter grids
> param_grid = list("ml_l" = ps(cp = p_dbl(lower = 0.01, upper = 0.02),
+ maxdepth = p_int(lower = 2, upper = 10)),
+ "ml_m" = ps(cp = p_dbl(lower = 0.01, upper = 0.02),
+ maxdepth = p_int(lower = 2, upper = 10)))
>
> tune_settings = list(n_folds_tune = 3,
+ rsmp_tune = mlr3::rsmp("cv", folds = 3),
+ terminator = mlr3tuning::trm("evals", n_evals = 5),
+ tuner = tnr("grid_search", resolution = 10))
>
> obj_xtdml$tune(param_set = param_grid, tune_settings = tune_settings)
INFO [19:28:58.183] [bbotk] Starting to optimize 2 parameter(s) with '<OptimizerBatchGridSearch>' and '<TerminatorEvals> [n_evals=5, k=0]'
INFO [19:28:58.254] [bbotk] Evaluating 1 configuration(s)
INFO [19:28:58.278] [mlr3] Running benchmark with 3 resampling iterations
INFO [19:28:58.383] [mlr3] Applying learner 'regr.rpart' on task 'nuis_l' (iter 1/3)
INFO [19:28:58.430] [mlr3] Applying learner 'regr.rpart' on task 'nuis_l' (iter 2/3)
INFO [19:28:58.462] [mlr3] Applying learner 'regr.rpart' on task 'nuis_l' (iter 3/3)
INFO [19:28:58.495] [mlr3] Finished benchmark
Error in `[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash") :
attempt access index 9/9 in VECTOR_ELT
Calls: <Anonymous> ... initialize -> .__ResultData__initialize -> [ -> [.data.table
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [2s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR