Running examples in 'mlr3resampling-Ex.R' failed
The error most likely occurred in:

> ### Name: score
> ### Title: Score benchmark results
> ### Aliases: score
> 
> ### ** Examples
> 
> 
> N <- 100
> library(data.table)
> set.seed(1)
> reg.dt <- data.table(
+   x=runif(N, -2, 2),
+   person=rep(1:2, each=0.5*N))
> reg.pattern.list <- list(
+   easy=function(x, person)x^2,
+   impossible=function(x, person)(x^2+person*3)*(-1)^person)
> reg.task.list <- list()
> for(pattern in names(reg.pattern.list)){
+   f <- reg.pattern.list[[pattern]]
+   yname <- paste0("y_",pattern)
+   reg.dt[, (yname) := f(x,person)+rnorm(N, sd=0.5)][]
+   task.dt <- reg.dt[, c("x","person",yname), with=FALSE]
+   task.obj <- mlr3::TaskRegr$new(
+     pattern, task.dt, target=yname)
+   task.obj$col_roles$stratum <- "person"
+   task.obj$col_roles$subset <- "person"
+   reg.task.list[[pattern]] <- task.obj
+ }
> same_other <- mlr3resampling::ResamplingSameOtherSizesCV$new()
> reg.learner.list <- list(
+   mlr3::LearnerRegrFeatureless$new())
> if(requireNamespace("rpart")){
+   reg.learner.list$rpart <- mlr3::LearnerRegrRpart$new()
+ }
Loading required namespace: rpart
> (bench.grid <- mlr3::benchmark_grid(
+   reg.task.list,
+   reg.learner.list,
+   same_other))
         task          learner          resampling
       <char>           <char>              <char>
1:       easy regr.featureless same_other_sizes_cv
2:       easy       regr.rpart same_other_sizes_cv
3: impossible regr.featureless same_other_sizes_cv
4: impossible       regr.rpart same_other_sizes_cv
> bench.result <- mlr3::benchmark(bench.grid)
INFO  [10:31:27.360] [mlr3] Running benchmark with 72 resampling iterations
INFO  [10:31:27.465] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 1/18)
INFO  [10:31:27.497] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 2/18)
INFO  [10:31:27.509] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 3/18)
INFO  [10:31:27.518] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 4/18)
INFO  [10:31:27.528] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 5/18)
INFO  [10:31:27.538] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 6/18)
INFO  [10:31:27.548] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 7/18)
INFO  [10:31:27.561] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 8/18)
INFO  [10:31:27.578] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 9/18)
INFO  [10:31:27.599] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 10/18)
INFO  [10:31:27.616] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 11/18)
INFO  [10:31:27.633] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 12/18)
INFO  [10:31:27.649] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 13/18)
INFO  [10:31:27.667] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 14/18)
INFO  [10:31:27.685] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 15/18)
INFO  [10:31:27.703] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 16/18)
INFO  [10:31:27.722] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 17/18)
INFO  [10:31:27.741] [mlr3] Applying learner 'regr.featureless' on task 'easy' (iter 18/18)
INFO  [10:31:27.761] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 1/18)
INFO  [10:31:27.782] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 2/18)
INFO  [10:31:27.796] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 3/18)
INFO  [10:31:27.810] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 4/18)
INFO  [10:31:27.825] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 5/18)
INFO  [10:31:27.842] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 6/18)
INFO  [10:31:27.870] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 7/18)
INFO  [10:31:27.892] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 8/18)
INFO  [10:31:27.913] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 9/18)
INFO  [10:31:27.934] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 10/18)
INFO  [10:31:27.960] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 11/18)
INFO  [10:31:27.978] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 12/18)
INFO  [10:31:27.995] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 13/18)
INFO  [10:31:28.012] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 14/18)
INFO  [10:31:28.030] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 15/18)
INFO  [10:31:28.045] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 16/18)
INFO  [10:31:28.061] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 17/18)
INFO  [10:31:28.091] [mlr3] Applying learner 'regr.rpart' on task 'easy' (iter 18/18)
INFO  [10:31:28.120] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 1/18)
INFO  [10:31:28.133] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 2/18)
INFO  [10:31:28.145] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 3/18)
INFO  [10:31:28.158] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 4/18)
INFO  [10:31:28.170] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 5/18)
INFO  [10:31:28.187] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 6/18)
INFO  [10:31:28.204] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 7/18)
INFO  [10:31:28.220] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 8/18)
INFO  [10:31:28.241] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 9/18)
INFO  [10:31:28.255] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 10/18)
INFO  [10:31:28.270] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 11/18)
INFO  [10:31:28.287] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 12/18)
INFO  [10:31:28.314] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 13/18)
INFO  [10:31:28.328] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 14/18)
INFO  [10:31:28.344] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 15/18)
INFO  [10:31:28.359] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 16/18)
INFO  [10:31:28.372] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 17/18)
INFO  [10:31:28.388] [mlr3] Applying learner 'regr.featureless' on task 'impossible' (iter 18/18)
INFO  [10:31:28.397] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 1/18)
INFO  [10:31:28.410] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 2/18)
INFO  [10:31:28.423] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 3/18)
INFO  [10:31:28.436] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 4/18)
INFO  [10:31:28.450] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 5/18)
INFO  [10:31:28.469] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 6/18)
INFO  [10:31:28.486] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 7/18)
INFO  [10:31:28.505] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 8/18)
INFO  [10:31:28.529] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 9/18)
INFO  [10:31:28.553] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 10/18)
INFO  [10:31:28.576] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 11/18)
INFO  [10:31:28.602] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 12/18)
INFO  [10:31:28.624] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 13/18)
INFO  [10:31:28.646] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 14/18)
INFO  [10:31:28.661] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 15/18)
INFO  [10:31:28.681] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 16/18)
INFO  [10:31:28.701] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 17/18)
INFO  [10:31:28.726] [mlr3] Applying learner 'regr.rpart' on task 'impossible' (iter 18/18)
INFO  [10:31:28.780] [mlr3] Finished benchmark
> bench.score <- mlr3resampling::score(bench.result)
> if(require(animint2)){
+   ggplot()+
+     geom_point(aes(
+       regr.mse, train.subsets, color=algorithm),
+       shape=1,
+       data=bench.score)+
+     facet_grid(
+       test.subset ~ task_id,
+       labeller=label_both,
+       scales="free")+
+     scale_x_log10()
+ }
Loading required package: animint2
Error: Cannot create zero-length unit vector ("unit" subsetting)
Execution halted