* using log directory 'd:/Rcompile/CRANpkg/local/4.5/mlr3benchmark.Rcheck' * using R version 4.5.3 (2026-03-11 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'mlr3benchmark/DESCRIPTION' ... OK * this is package 'mlr3benchmark' version '0.1.7' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'mlr3benchmark' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [3s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [3s] OK * checking loading without being on the library search path ... [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] OK * checking Rd files ... [1s] OK * checking Rd metadata ... 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] ERROR Running examples in 'mlr3benchmark-Ex.R' failed The error most likely occurred in: > ### Name: BenchmarkAggr > ### Title: Aggregated Benchmark Result Object > ### Aliases: BenchmarkAggr > > ### ** Examples > > # Not restricted to mlr3 objects > df = data.frame(tasks = factor(rep(c("A", "B"), each = 5), + levels = c("A", "B")), + learners = factor(paste0("L", 1:5)), + RMSE = runif(10), MAE = runif(10)) > as_benchmark_aggr(df, task_id = "tasks", learner_id = "learners") of 10 rows with 2 tasks, 5 learners and 2 measures tasks learners RMSE MAE 1: A L1 0.26550866 0.2059746 2: A L2 0.37212390 0.1765568 3: A L3 0.57285336 0.6870228 4: A L4 0.90820779 0.3841037 5: A L5 0.20168193 0.7698414 6: B L1 0.89838968 0.4976992 7: B L2 0.94467527 0.7176185 8: B L3 0.66079779 0.9919061 9: B L4 0.62911404 0.3800352 10: B L5 0.06178627 0.7774452 > > if (requireNamespaces(c("mlr3", "rpart"))) { + library(mlr3) + task = tsks(c("pima", "spam")) + learns = lrns(c("classif.featureless", "classif.rpart")) + bm = benchmark(benchmark_grid(task, learns, rsmp("cv", folds = 2))) + + # coercion + as_benchmark_aggr(bm) + } Warning in data(list = id, package = package, envir = ee) : data set 'PimaIndiansDiabetes2' not found Error in UseMethod("as_data_backend") : no applicable method for 'as_data_backend' applied to an object of class "NULL" Calls: tsks ... dictionary_initialize_item -> do.call -> -> as_data_backend Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [10s] ERROR Running 'testthat.R' [9s] Running the tests in 'tests/testthat.R' failed. Complete output: > if (requireNamespace("testthat", quietly = TRUE)) { + library("testthat") + library("checkmate") # for more expect_*() functions + library("mlr3benchmark") + test_check("mlr3benchmark") + } Saving _problems/test_BenchmarkAggr-99.R INFO [14:17:35.862] [mlr3] Running benchmark with 18 resampling iterations INFO [14:17:36.124] [mlr3] Applying learner 'classif.featureless' on task 'iris' (iter 1/3) INFO [14:17:36.224] [mlr3] Applying learner 'classif.featureless' on task 'iris' (iter 2/3) INFO [14:17:36.282] [mlr3] Applying learner 'classif.featureless' on task 'iris' (iter 3/3) INFO [14:17:36.327] [mlr3] Applying learner 'classif.rpart' on task 'iris' (iter 1/3) INFO [14:17:36.389] [mlr3] Applying learner 'classif.rpart' on task 'iris' (iter 2/3) INFO [14:17:36.454] [mlr3] Applying learner 'classif.rpart' on task 'iris' (iter 3/3) INFO [14:17:36.514] [mlr3] Applying learner 'rpart2' on task 'iris' (iter 1/3) INFO [14:17:36.580] [mlr3] Applying learner 'rpart2' on task 'iris' (iter 2/3) INFO [14:17:36.645] [mlr3] Applying learner 'rpart2' on task 'iris' (iter 3/3) INFO [14:17:36.712] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 1/3) INFO [14:17:36.780] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 2/3) INFO [14:17:36.835] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 3/3) INFO [14:17:36.887] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 1/3) INFO [14:17:36.965] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 2/3) INFO [14:17:37.048] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 3/3) INFO [14:17:37.134] [mlr3] Applying learner 'rpart2' on task 'sonar' (iter 1/3) INFO [14:17:37.209] [mlr3] Applying learner 'rpart2' on task 'sonar' (iter 2/3) INFO [14:17:37.259] [mlr3] Applying learner 'rpart2' on task 'sonar' (iter 3/3) INFO [14:17:37.335] [mlr3] Finished benchmark [ FAIL 1 | WARN 2 | SKIP 0 | PASS 50 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_BenchmarkAggr.R:99:3'): mlr3 coercions ───────────────────────── Error in `UseMethod("as_data_backend")`: no applicable method for 'as_data_backend' applied to an object of class "NULL" Backtrace: ▆ 1. └─mlr3::tsks(c("pima", "spam")) at test_BenchmarkAggr.R:99:3 2. └─mlr3misc::dictionary_sugar_mget(dict = mlr_tasks, .keys, ...) 3. └─base::lapply(...) 4. └─mlr3misc (local) FUN(X[[i]], ...) 5. └─mlr3misc:::dictionary_get(dict, .key, .dicts_suggest = .dicts_suggest) 6. └─mlr3misc:::dictionary_initialize_item(key, obj, dots) 7. ├─base::do.call(constructor, cargs) 8. └─mlr3 (local) ``() 9. └─mlr3::as_data_backend(load_dataset("PimaIndiansDiabetes2", "mlbench")) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 50 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [16s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 2 ERRORs