Running examples in ‘mlr3viz-Ex.R’ failed
The error most likely occurred in:

> ### 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:51:57.263] [mlr3] Running benchmark with 40 resampling iterations
INFO  [17:51:57.821] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 1/10)
INFO  [17:51:57.953] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 2/10)
INFO  [17:51:58.076] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 3/10)
INFO  [17:51:58.179] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 4/10)
INFO  [17:51:58.309] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 5/10)
INFO  [17:51:58.448] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 6/10)
INFO  [17:51:58.507] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 7/10)
INFO  [17:51:58.804] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 8/10)
INFO  [17:51:58.930] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 9/10)
INFO  [17:51:59.030] [mlr3] Applying learner 'classif.featureless' on task 'pima' (iter 10/10)
INFO  [17:51:59.192] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 1/10)
INFO  [17:51:59.447] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 2/10)
INFO  [17:51:59.647] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 3/10)
INFO  [17:51:59.849] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 4/10)
INFO  [17:52:00.014] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 5/10)
INFO  [17:52:00.145] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 6/10)
INFO  [17:52:00.297] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 7/10)
INFO  [17:52:00.466] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 8/10)
INFO  [17:52:00.820] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 9/10)
INFO  [17:52:00.884] [mlr3] Applying learner 'classif.rpart' on task 'pima' (iter 10/10)
INFO  [17:52:00.993] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 1/10)
INFO  [17:52:01.140] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 2/10)
INFO  [17:52:01.221] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 3/10)
INFO  [17:52:01.333] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 4/10)
INFO  [17:52:01.479] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 5/10)
INFO  [17:52:01.608] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 6/10)
INFO  [17:52:01.706] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 7/10)
INFO  [17:52:01.762] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 8/10)
INFO  [17:52:01.841] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 9/10)
INFO  [17:52:01.893] [mlr3] Applying learner 'classif.featureless' on task 'sonar' (iter 10/10)
INFO  [17:52:02.004] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 1/10)
INFO  [17:52:02.238] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 2/10)
INFO  [17:52:02.496] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 3/10)
INFO  [17:52:02.664] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 4/10)
INFO  [17:52:02.761] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 5/10)
INFO  [17:52:02.961] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 6/10)
INFO  [17:52:03.170] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 7/10)
INFO  [17:52:03.374] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 8/10)
INFO  [17:52:03.579] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 9/10)
INFO  [17:52:03.825] [mlr3] Applying learner 'classif.rpart' on task 'sonar' (iter 10/10)
INFO  [17:52:03.987] [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