- 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 ‘mlr3viz/DESCRIPTION’ ... OK
- this is package ‘mlr3viz’ version ‘0.10.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/3s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘mlr3proba’
- 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 ‘mlr3viz’ 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 ... [1s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [1s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/2s] OK
- checking whether startup messages can be suppressed ... [2s/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 ... [9s/12s] 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 ... [4s/4s] ERROR
Running examples in ‘mlr3viz-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: autoplot.BenchmarkResult
> ### Title: Plots for Benchmark Results
> ### Aliases: autoplot.BenchmarkResult
>
> ### ** Examples
>
> if (requireNamespace("mlr3")) {
+ library(mlr3)
+ library(mlr3viz)
+
+ tasks = tsks(c("pima", "sonar"))
+ learner = lrns(c("classif.featureless", "classif.rpart"),
+ predict_type = "prob")
+ resampling = rsmps("cv")
+ object = benchmark(benchmark_grid(tasks, learner, resampling))
+
+ head(fortify(object))
+ autoplot(object)
+ autoplot(object$clone(deep = TRUE)$filter(task_ids = "pima"), type = "roc")
+ }
Loading required namespace: mlr3
INFO [17:17:26.789] [mlr3] Running benchmark with 40 resampling iterations
INFO [17:17:26.927] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 1/10)
INFO [17:17:26.985] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 2/10)
INFO [17:17:27.039] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 3/10)
INFO [17:17:27.059] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 4/10)
INFO [17:17:27.087] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 5/10)
INFO [17:17:27.108] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 6/10)
INFO [17:17:27.133] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 7/10)
INFO [17:17:27.283] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 8/10)
INFO [17:17:27.339] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 9/10)
INFO [17:17:27.396] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 10/10)
INFO [17:17:27.422] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 1/10)
INFO [17:17:27.480] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 2/10)
INFO [17:17:27.511] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 3/10)
INFO [17:17:27.549] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 4/10)
INFO [17:17:27.583] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 5/10)
INFO [17:17:27.614] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 6/10)
INFO [17:17:27.655] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 7/10)
INFO [17:17:27.687] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 8/10)
INFO [17:17:27.892] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 9/10)
INFO [17:17:27.924] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 10/10)
INFO [17:17:27.954] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 1/10)
INFO [17:17:27.982] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 2/10)
INFO [17:17:28.066] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 3/10)
INFO [17:17:28.145] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 4/10)
INFO [17:17:28.205] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 5/10)
INFO [17:17:28.243] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 6/10)
INFO [17:17:28.324] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 7/10)
INFO [17:17:28.416] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 8/10)
INFO [17:17:28.510] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 9/10)
INFO [17:17:28.591] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 10/10)
INFO [17:17:28.664] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 1/10)
INFO [17:17:28.706] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 2/10)
INFO [17:17:28.746] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 3/10)
INFO [17:17:28.787] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 4/10)
INFO [17:17:28.863] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 5/10)
INFO [17:17:28.933] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 6/10)
INFO [17:17:28.968] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 7/10)
INFO [17:17:29.003] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 8/10)
INFO [17:17:29.040] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 9/10)
INFO [17:17:29.083] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 10/10)
INFO [17:17:29.130] [mlr3] Finished benchmark
Error in `[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash") :
attempt access index 9/9 in VECTOR_ELT
Calls: benchmark ... initialize -> .__ResultData__initialize -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [56s/29s] ERROR
Running ‘testthat.R’ [55s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> if (requireNamespace("testthat", quietly = TRUE)) {
+ library("testthat")
+ library("mlr3viz")
+ test_check("mlr3viz")
+ }
Starting 2 test processes.
> test_EnsembleFSResult.R: Loading required namespace: vdiffr
Saving _problems/test_BenchmarkResult-7.R
> test_Filter.R: Loading required namespace: vdiffr
Saving _problems/test_LearnerClassif-6.R
> test_OptimInstanceSingleCrit.R: Loading required package: paradox
> test_PredictionRegr.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Saving _problems/test_ResampleResult-7.R
> test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
> test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
> test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
> test_TaskClassif.R: `stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Saving _problems/test_TuningInstanceSingleCrit-24.R
Saving _problems/test_plot_learner_prediction-8.R
Saving _problems/test_plot_learner_prediction-41.R
Saving _problems/test_plot_learner_prediction-51.R
[ FAIL 7 | WARN 51 | SKIP 20 | PASS 63 ]
══ Skipped tests (20) ══════════════════════════════════════════════════════════
• On CRAN (20): 'test_Filter.R:3:1', 'test_LearnerClassif.R:11:1',
'test_EnsembleFSResult.R:4:1', 'test_LearnerClassifRpart.R:6:1',
'test_LearnerClassifCVGlmnet.R:8:1', 'test_LearnerClasssifGlmnet.R:8:1',
'test_LearnerRegr.R:1:1', 'test_LearnerRegr.R:11:1',
'test_LearnerRegr.R:21:1', 'test_LearnerClustHierarchical.R:7:3',
'test_LearnerRegrCVGlmnet.R:8:1', 'test_LearnerRegrGlmnet.R:7:1',
'test_LearnerRegrRpart.R:6:1', 'test_PredictionClassif.R:8:1',
'test_PredictionClust.R:8:3', 'test_PredictionRegr.R:3:1',
'test_OptimInstanceSingleCrit.R:35:1', 'test_TaskClust.R:4:1',
'test_TaskRegr.R:3:1', 'test_TaskClassif.R:3:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_BenchmarkResult.R:7:1'): (code run outside of `test_that()`) ───
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3::benchmark(mlr3::benchmark_grid(tasks, learner, resampling)) at test_BenchmarkResult.R:7:1
2. └─ResultData$new(grid, data_extra, store_backends = store_backends)
3. └─mlr3 (local) initialize(...)
4. └─mlr3:::.__ResultData__initialize(...)
5. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
6. └─data.table:::`[.data.table`(...)
── Error ('test_LearnerClassif.R:6:3'): autoplot.PredictionClassif decision boundary probability ──
Error in ``[.data.table`(grid, , `:=`(".prob.response", .SD[, paste0("prob.", get("response")), with = FALSE]), by = "response")`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. ├─ggplot2::autoplot(learner, type = "prediction", task = task) at test_LearnerClassif.R:6:3
2. ├─mlr3viz:::autoplot.LearnerClassifRpart(...)
3. ├─base::NextMethod()
4. └─mlr3viz:::autoplot.LearnerClassif(...)
5. └─mlr3viz:::predict_grid(...)
6. ├─...[]
7. └─data.table:::`[.data.table`(...)
── Error ('test_ResampleResult.R:7:1'): (code run outside of `test_that()`) ────
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3::resample(task, learner, resampling) at test_ResampleResult.R:7:1
2. └─ResultData$new(data, data_extra, store_backends = store_backends)
3. └─mlr3 (local) initialize(...)
4. └─mlr3:::.__ResultData__initialize(...)
5. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
6. └─data.table:::`[.data.table`(...)
── Error ('test_TuningInstanceSingleCrit.R:24:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─tuner$optimize(instance)
2. └─mlr3tuning:::.__TunerBatchFromOptimizerBatch__optimize(...)
3. └─private$.optimizer$optimize(inst)
4. └─bbotk:::.__OptimizerBatch__optimize(...)
5. └─bbotk::optimize_batch_default(inst, self)
6. ├─base::tryCatch(...)
7. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
8. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
9. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler)
10. └─get_private(optimizer)$.optimize(instance)
11. └─bbotk:::.__OptimizerBatchRandomSearch__.optimize(...)
12. └─inst$eval_batch(design$data)
13. └─bbotk:::.__OptimInstanceBatch__eval_batch(...)
14. └─self$objective$eval_many(xss_trafoed)
15. └─bbotk:::.__Objective__eval_many(...)
16. ├─mlr3misc::invoke(private$.eval_many, xss = xss, .args = self$constants$values)
17. │ └─base::eval.parent(expr, n = 1L)
18. │ └─base::eval(expr, p)
19. │ └─base::eval(expr, p)
20. └─private$.eval_many(xss = xss, resampling = `<list>`)
21. └─mlr3tuning:::.__ObjectiveTuningBatch__.eval_many(...)
22. └─mlr3::benchmark(...)
23. └─ResultData$new(grid, data_extra, store_backends = store_backends)
24. └─mlr3 (local) initialize(...)
25. └─mlr3:::.__ResultData__initialize(...)
26. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
27. └─data.table:::`[.data.table`(...)
── Error ('test_plot_learner_prediction.R:8:3'): plot_learner_prediction.LearnerClassif ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:8:3
2. └─mlr3::resample(...)
3. └─ResultData$new(data, data_extra, store_backends = store_backends)
4. └─mlr3 (local) initialize(...)
5. └─mlr3:::.__ResultData__initialize(...)
6. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
7. └─data.table:::`[.data.table`(...)
── Error ('test_plot_learner_prediction.R:41:3'): plot_learner_prediction.LearnerRegr 2d ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:41:3
2. └─mlr3::resample(...)
3. └─ResultData$new(data, data_extra, store_backends = store_backends)
4. └─mlr3 (local) initialize(...)
5. └─mlr3:::.__ResultData__initialize(...)
6. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
7. └─data.table:::`[.data.table`(...)
── Error ('test_plot_learner_prediction.R:51:3'): plot_learner_prediction.LearnerRegr 1d ──
Error in ``[.data.table`(data, , `:=`("task_hash", task[[1L]]$hash), by = "uhash")`: attempt access index 9/9 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3viz::plot_learner_prediction(learner, task, expand_range = 0.1) at test_plot_learner_prediction.R:51:3
2. └─mlr3::resample(...)
3. └─ResultData$new(data, data_extra, store_backends = store_backends)
4. └─mlr3 (local) initialize(...)
5. └─mlr3:::.__ResultData__initialize(...)
6. ├─data[, `:=`("task_hash", task[[1L]]$hash), by = "uhash"]
7. └─data.table:::`[.data.table`(...)
[ FAIL 7 | WARN 51 | SKIP 20 | PASS 63 ]
Deleting unused snapshots: 'BenchmarkResult/bmr-boxplot.svg',
'BenchmarkResult/bmr-holdout-ci.svg', 'BenchmarkResult/bmr-holdout-roc.svg',
'BenchmarkResult/bmr-prc.svg', 'BenchmarkResult/bmr-roc.svg',
'LearnerClassif/learner-classif-prob.svg',
'LearnerClustHierarchical/learner-clust-agnes.svg',
'LearnerClustHierarchical/learner-clust-hclust.svg',
'PredictionClust/predictionclust-pca.svg',
'PredictionClust/predictionclust-scatter.svg',
'PredictionClust/predictionclust-sil.svg',
'ResampleResult/resampleresult-boxplot.svg',
'ResampleResult/resampleresult-histogram.svg',
'ResampleResult/resampleresult-prc.svg',
'ResampleResult/resampleresult-roc.svg',
'TuningInstanceSingleCrit/tisc-incumbent.svg',
'TuningInstanceSingleCrit/tisc-marginal-01.svg',
'TuningInstanceSingleCrit/tisc-marginal-02.svg', …,
'plot_learner_prediction/learner-prediction-prob.svg', and
'plot_learner_prediction/learner-prediction-response.svg'
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [6s/10s] OK
- checking HTML version of manual ... [2s/4s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs