- using R Under development (unstable) (2025-12-23 r89222 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 'mlr3resampling/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'mlr3resampling' version '2025.11.19'
- 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 'mlr3resampling' can be installed ... OK
See the install log for details.
- checking installed package size ... 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 ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s] OK
- checking loading without being on the library search path ... [1s] OK
- checking whether startup messages can be suppressed ... [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 ... [7s] 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [1s] ERROR
Running examples in 'mlr3resampling-Ex.R' failed
The error most likely occurred in:
> ### Name: AZtrees
> ### Title: Arizona Trees
> ### Aliases: AZtrees
> ### Keywords: datasets
>
> ### ** Examples
>
>
> data(AZtrees)
> task.obj <- mlr3::TaskClassif$new("AZtrees3", AZtrees, target="y")
> task.obj$col_roles$feature <- grep("SAMPLE", names(AZtrees), value=TRUE)
> task.obj$col_roles$group <- "polygon"
> task.obj$col_roles$subset <- "region3"
> str(task.obj)
Classes 'TaskClassif', 'TaskSupervised', 'Task', 'R6' <TaskClassif:AZtrees3>
> same_other_sizes_cv <- mlr3resampling::ResamplingSameOtherSizesCV$new()
> same_other_sizes_cv$instantiate(task.obj)
Error in `[.data.table`(unique(fold.train.dt[, .(group, stratum)])[sample(.N)], :
attempt access index 2/2 in VECTOR_ELT
Calls: <Anonymous> ... .__ResamplingSameOtherSizesCV__.get_instance -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [6s] ERROR
Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> data.table::setDTthreads(1L)
> if(require(testthat))test_check("mlr3resampling")
Loading required package: testthat
Loading required package: mlr3resampling
Saving _problems/test-CRAN-20.R
Saving _problems/test-CRAN-30.R
Saving _problems/test-CRAN-200.R
Saving _problems/test-CRAN-218.R
Saving _problems/test-CRAN-244.R
Saving _problems/test-CRAN-272.R
Saving _problems/test-CRAN-299.R
Saving _problems/test-CRAN-325.R
Saving _problems/test-CRAN-351.R
Saving _problems/test-CRAN-380.R
Saving _problems/test-CRAN-400.R
Saving _problems/test-CRAN-420.R
Saving _problems/test-CRAN-442.R
Saving _problems/test-CRAN-636.R
Saving _problems/test-CRAN-701.R
Saving _problems/test-CRAN-744.R
[ FAIL 16 | WARN 0 | SKIP 0 | PASS 53 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-CRAN.R:18:3'): resampling error if no strata ─────────────────
`{ ... }` threw an error with unexpected message.
Expected match: "task has no strata, but at least one stratum variable is required; at least assign the subset variable to a stratum"
Actual message: "attempt access index 1/1 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-CRAN.R:18:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─same_other$instantiate(itask) at test-CRAN.R:19:5
7. └─mlr3:::.__Resampling__instantiate(...)
8. └─private$.get_instance(task)
9. └─mlr3resampling:::.__ResamplingSameOtherCV__.get_instance(...)
10. ├─task$data(cols = subset.name.vec)[, `:=`(subset, .GRP), by = subset.name.vec]
11. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:30:3'): instantiation creates instance ──────────────────
Error in ``[.data.table`(task$data(cols = subset.name.vec), , `:=`(subset, .GRP), by = subset.name.vec)`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other$instantiate(itask) at test-CRAN.R:30:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherCV__.get_instance(...)
5. ├─task$data(cols = subset.name.vec)[, `:=`(subset, .GRP), by = subset.name.vec]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:200:3'): ResamplingSameOtherSizesCV no subset, no group, no stratum ──
Error in ``[.data.table`(unique(fold.train.dt[, .(group, stratum)])[sample(.N)], , `:=`(groups, max(n.train.groups.vec) * seq_along(group)/length(group)), by = stratum)`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:200:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:218:3'): ResamplingSameOtherSizesCV no subset, yes group, no stratum ──
Error in ``[.data.table`(unique(fold.train.dt[, .(group, stratum)])[sample(.N)], , `:=`(groups, max(n.train.groups.vec) * seq_along(group)/length(group)), by = stratum)`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:218:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:244:3'): ResamplingSameOtherSizesCV no subset, yes group, yes stratum ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:244:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:272:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum, ignore_subset ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:272:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:299:3'): ResamplingSameOtherSizesCV no subset, yes group, yes stratum, sizes=0 ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:299:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:325:3'): ResamplingSameOtherSizesCV no subset, yes group, yes stratum, sizes=1 ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:325:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:351:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:351:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:380:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum, sizes=0 ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:380:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:400:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum, sizes=1 ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:400:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:420:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum, sizes=2 ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:420:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:442:3'): ResamplingSameOtherSizesCV yes subset, yes group, yes stratum, sizes=2, same/other ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─same_other_sizes_cv$instantiate(reg.task) at test-CRAN.R:442:3
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:636:3'): proj_test down-samples proportionally ──────────
Error in ``[.data.table`(strat_dt, , `:=`(..strat.i, 1:.N), by = stratum)`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3resampling::proj_test(pkg.proj.dir) at test-CRAN.R:636:3
2. ├─strat_dt[, `:=`(..strat.i, 1:.N), by = stratum]
3. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:698:3'): set works after score(), other is last Y level ──
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3::benchmark_grid(reg.task.list, reg.learner.list, SOAK) at test-CRAN.R:698:3
2. └─mlr3misc::pmap(grid, function(task, resampling) resamplings[[resampling]]$clone()$instantiate(tasks[[task]]))
3. └─mlr3misc:::mapply_list(.f, .x, list(...))
4. └─base::.mapply(.f, .dots, .args)
5. └─mlr3 (local) `<fn>`(task = dots[[1L]][[1L]], resampling = dots[[2L]][[1L]])
6. └─resamplings[[resampling]]$clone()$instantiate(tasks[[task]])
7. └─mlr3:::.__Resampling__instantiate(...)
8. └─private$.get_instance(task)
9. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN.R:741:3'): plot ok without other ──────────────────────────
Error in ``[.data.table`(task$data(cols = task$col_roles$stratum), , `:=`(stratum, .GRP), by = c(task$col_roles$stratum))`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. └─mlr3::benchmark_grid(reg.task.list, reg.learner.list, SAK) at test-CRAN.R:741:3
2. └─mlr3misc::pmap(grid, function(task, resampling) resamplings[[resampling]]$clone()$instantiate(tasks[[task]]))
3. └─mlr3misc:::mapply_list(.f, .x, list(...))
4. └─base::.mapply(.f, .dots, .args)
5. └─mlr3 (local) `<fn>`(task = dots[[1L]][[1L]], resampling = dots[[2L]][[1L]])
6. └─resamplings[[resampling]]$clone()$instantiate(tasks[[task]])
7. └─mlr3:::.__Resampling__instantiate(...)
8. └─private$.get_instance(task)
9. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
10. ├─...[]
11. └─data.table:::`[.data.table`(...)
[ FAIL 16 | WARN 0 | SKIP 0 | PASS 53 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [8s] ERROR
Error(s) in re-building vignettes:
--- re-building 'Newer_resamplers.Rmd' using knitr
Quitting from Newer_resamplers.Rmd:99-101 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 1/1 in VECTOR_ELT
---
Backtrace:
▆
1. └─soak_default$clone()$instantiate(reg.task)
2. └─mlr3:::.__Resampling__instantiate(...)
3. └─private$.get_instance(task)
4. └─mlr3resampling:::.__ResamplingSameOtherSizesCV__.get_instance(...)
5. ├─...[]
6. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Newer_resamplers.Rmd' failed with diagnostics:
attempt access index 1/1 in VECTOR_ELT
--- failed re-building 'Newer_resamplers.Rmd'
--- re-building 'Older_resamplers.Rmd' using knitr
Quitting from Older_resamplers.Rmd:151-156 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 1/1 in VECTOR_ELT
---
Backtrace:
▆
1. └─mlr3::benchmark_grid(reg.task.list, reg.learner.list, reg_same_other)
2. └─mlr3misc::pmap(grid, function(task, resampling) resamplings[[resampling]]$clone()$instantiate(tasks[[task]]))
3. └─mlr3misc:::mapply_list(.f, .x, list(...))
4. └─base::.mapply(.f, .dots, .args)
5. └─mlr3 (local) `<fn>`(task = dots[[1L]][[1L]], resampling = dots[[2L]][[1L]])
6. └─resamplings[[resampling]]$clone()$instantiate(tasks[[task]])
7. └─mlr3:::.__Resampling__instantiate(...)
8. └─private$.get_instance(task)
9. └─mlr3resampling:::.__ResamplingSameOtherCV__.get_instance(...)
10. ├─task$data(cols = subset.name.vec)[, `:=`(subset, .GRP), by = subset.name.vec]
11. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'Older_resamplers.Rmd' failed with diagnostics:
attempt access index 1/1 in VECTOR_ELT
--- failed re-building 'Older_resamplers.Rmd'
SUMMARY: processing the following files failed:
'Newer_resamplers.Rmd' 'Older_resamplers.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [4s] OK
- DONE
Status: 3 ERRORs