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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: autoplot.BenchmarkAggr
> ### Title: Plots for BenchmarkAggr
> ### Aliases: autoplot.BenchmarkAggr
> 
> ### ** Examples
> 
> if (requireNamespaces(c("mlr3learners", "mlr3", "rpart", "xgboost"))) {
+ library(mlr3)
+ library(mlr3learners)
+ library(ggplot2)
+ 
+ set.seed(1)
+ task = tsks(c("iris", "sonar", "wine", "zoo"))
+ learns = lrns(c("classif.featureless", "classif.rpart", "classif.xgboost"))
+ bm = benchmark(benchmark_grid(task, learns, rsmp("cv", folds = 3)))
+ obj = as.BenchmarkAggr(bm)
+ 
+ # mean and error bars
+ autoplot(obj, type = "mean", level = 0.95)
+ 
+ if (requireNamespace("PMCMR", quietly = TRUE)) {
+   # critical differences
+   autoplot(obj, type = "cd",style = 1)
+   autoplot(obj, type = "cd",style = 2)
+ 
+   # post-hoc friedman-nemenyi
+   autoplot(obj, type = "fn")
+ }
+ 
+ }
INFO  [00:27:39.006] [mlr3]  Running benchmark with 36 resampling iterations 
INFO  [00:27:39.015] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 3/3) 
INFO  [00:27:39.030] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 3/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'binary:logistic' was changed from 'error' to 'logloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.097] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 1/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.153] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 1/3) 
INFO  [00:27:39.213] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 1/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.261] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 1/3) 
INFO  [00:27:39.281] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 3/3) 
INFO  [00:27:39.324] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 2/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.357] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 1/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'binary:logistic' was changed from 'error' to 'logloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.384] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 2/3) 
INFO  [00:27:39.416] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 3/3) 
INFO  [00:27:39.439] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 1/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.461] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 1/3) 
INFO  [00:27:39.473] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 1/3) 
INFO  [00:27:39.497] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 2/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.517] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 3/3) 
INFO  [00:27:39.550] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 2/3) 
INFO  [00:27:39.586] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 3/3) 
INFO  [00:27:39.598] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 3/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.620] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 3/3) 
INFO  [00:27:39.633] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 2/3) 
INFO  [00:27:39.645] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 2/3) 
INFO  [00:27:39.666] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 2/3) 
INFO  [00:27:39.679] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 2/3) 
INFO  [00:27:39.692] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 2/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'binary:logistic' was changed from 'error' to 'logloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.720] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 3/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.744] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 3/3) 
INFO  [00:27:39.780] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 2/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.802] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 1/3) 
INFO  [00:27:39.815] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 2/3) 
INFO  [00:27:39.839] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 1/3) 
INFO  [00:27:39.851] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 3/3) 
[00:27:39] WARNING: amalgamation/../src/learner.cc:1095: Starting in XGBoost 1.3.0, the default evaluation metric used with the objective 'multi:softprob' was changed from 'merror' to 'mlogloss'. Explicitly set eval_metric if you'd like to restore the old behavior.
INFO  [00:27:39.872] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 1/3) 
INFO  [00:27:39.885] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 1/3) 
INFO  [00:27:39.908] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 2/3) 
INFO  [00:27:39.921] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 3/3) 
INFO  [00:27:39.935] [mlr3]  Finished benchmark 
Error: 'posthoc.friedman.nemenyi.test.default' is defunct.
Use 'PMCMRplus::frdAllPairsNemenyiTest' instead.
See help("Defunct") and help("PMCMR-defunct").
Execution halted