- using R Under development (unstable) (2025-12-21 r89216)
- 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 ‘cpi/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘cpi’ version ‘0.1.5’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] 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 serialization versions ... OK
- checking whether package ‘cpi’ 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] 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 ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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 ... [6s/8s] OK
- checking Rd files ... [0s/0s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/2s] ERROR
Running examples in ‘cpi-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: cpi
> ### Title: Conditional Predictive Impact (CPI).
> ### Aliases: cpi
>
> ### ** Examples
>
> library(mlr3)
> library(mlr3learners)
>
> # Regression with linear model and holdout validation
> cpi(task = tsk("mtcars"), learner = lrn("regr.lm"),
+ resampling = rsmp("holdout"))
Error in `[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash") :
attempt access index 9/9 in VECTOR_ELT
Calls: cpi ... initialize -> .__ResultData__initialize -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/7s] ERROR
Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(cpi)
>
> test_check("cpi")
Saving _problems/test-check_args-7.R
Saving _problems/test-check_args-21.R
Saving _problems/test-check_args-36.R
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-check_args.R:6:3'): returns object of correct dimensions, regression ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─cpi::cpi(task = task, learner = lrn("regr.lm"), resampling = rsmp("holdout")) at test-check_args.R:6:3
2. └─cpi:::fit_learner(...)
3. └─mlr3::resample(task, learner, resampling, store_models = TRUE)
4. └─ResultData$new(data, data_extra, store_backends = store_backends)
5. └─mlr3 (local) initialize(...)
6. └─mlr3:::.__ResultData__initialize(...)
7. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
8. └─data.table:::`[.data.table`(...)
── Error ('test-check_args.R:19:3'): returns object of correct dimensions, classification ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─cpi::cpi(...) at test-check_args.R:19:3
2. └─cpi:::fit_learner(...)
3. └─mlr3::resample(task, learner, resampling, store_models = TRUE)
4. └─ResultData$new(data, data_extra, store_backends = store_backends)
5. └─mlr3 (local) initialize(...)
6. └─mlr3:::.__ResultData__initialize(...)
7. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
8. └─data.table:::`[.data.table`(...)
── Error ('test-check_args.R:33:3'): returns object of correct dimensions, group classification ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─cpi::cpi(...) at test-check_args.R:33:3
2. └─cpi:::fit_learner(...)
3. └─mlr3::resample(task, learner, resampling, store_models = TRUE)
4. └─ResultData$new(data, data_extra, store_backends = store_backends)
5. └─mlr3 (local) initialize(...)
6. └─mlr3:::.__ResultData__initialize(...)
7. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
8. └─data.table:::`[.data.table`(...)
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 1 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/6s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘intro.Rmd’ using rmarkdown
Quitting from intro.Rmd:25-33 [first_example]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 9/9 in VECTOR_ELT
---
Backtrace:
▆
1. └─cpi::cpi(...)
2. └─cpi:::fit_learner(...)
3. └─mlr3::resample(task, learner, resampling, store_models = TRUE)
4. └─ResultData$new(data, data_extra, store_backends = store_backends)
5. └─mlr3 (local) initialize(...)
6. └─mlr3:::.__ResultData__initialize(...)
7. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
8. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'intro.Rmd' failed with diagnostics:
attempt access index 9/9 in VECTOR_ELT
--- failed re-building ‘intro.Rmd’
SUMMARY: processing the following file failed:
‘intro.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs