* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/cpi.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * 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 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 ‘cpi’ can be installed ... OK * checking package directory ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 ... ERROR Running examples in ‘cpi-Ex.R’ failed The error most likely occurred in: > ### 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 examples with --run-donttest ... ERROR Running examples in ‘cpi-Ex.R’ failed The error most likely occurred in: > ### 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 ... Running ‘testthat.R’ ERROR 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 ... [11s/11s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘intro.Rmd’ using rmarkdown Quitting from intro.Rmd:25-33 [first_example] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 4 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/cpi.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 0:59.80, 43.50 + 15.97