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

> ### 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  [19:26:32.524] [mlr3]  Running benchmark with 36 resampling iterations 
INFO  [19:26:32.539] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 3/3) 
INFO  [19:26:32.563] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 3/3) 
[19:26:32] 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  [19:26:32.669] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 1/3) 
[19:26:32] 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  [19:26:32.726] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 1/3) 
INFO  [19:26:32.801] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 1/3) 
[19:26:32] 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  [19:26:32.841] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 1/3) 
INFO  [19:26:32.878] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 3/3) 
INFO  [19:26:32.914] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 2/3) 
[19:26:32] 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  [19:26:32.956] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 1/3) 
[19:26:32] 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  [19:26:33.042] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 2/3) 
INFO  [19:26:33.100] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 3/3) 
INFO  [19:26:33.145] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 1/3) 
[19:26:33] 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  [19:26:33.191] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 1/3) 
INFO  [19:26:33.215] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 1/3) 
INFO  [19:26:33.284] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 2/3) 
[19:26:33] 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  [19:26:33.322] [mlr3]  Applying learner 'classif.rpart' on task 'wine' (iter 3/3) 
INFO  [19:26:33.361] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 2/3) 
INFO  [19:26:33.434] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 3/3) 
INFO  [19:26:33.454] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 3/3) 
[19:26:33] 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  [19:26:33.491] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 3/3) 
INFO  [19:26:33.511] [mlr3]  Applying learner 'classif.featureless' on task 'zoo' (iter 2/3) 
INFO  [19:26:33.530] [mlr3]  Applying learner 'classif.rpart' on task 'iris' (iter 2/3) 
INFO  [19:26:33.564] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 2/3) 
INFO  [19:26:33.583] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 2/3) 
INFO  [19:26:33.603] [mlr3]  Applying learner 'classif.xgboost' on task 'sonar' (iter 2/3) 
[19:26:33] 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  [19:26:33.644] [mlr3]  Applying learner 'classif.xgboost' on task 'zoo' (iter 3/3) 
[19:26:33] 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  [19:26:33.679] [mlr3]  Applying learner 'classif.rpart' on task 'sonar' (iter 3/3) 
INFO  [19:26:33.737] [mlr3]  Applying learner 'classif.xgboost' on task 'wine' (iter 2/3) 
[19:26:33] 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  [19:26:33.773] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 1/3) 
INFO  [19:26:33.793] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 2/3) 
INFO  [19:26:33.834] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 1/3) 
INFO  [19:26:33.856] [mlr3]  Applying learner 'classif.xgboost' on task 'iris' (iter 3/3) 
[19:26:33] 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  [19:26:33.893] [mlr3]  Applying learner 'classif.featureless' on task 'sonar' (iter 1/3) 
INFO  [19:26:33.914] [mlr3]  Applying learner 'classif.rpart' on task 'zoo' (iter 1/3) 
INFO  [19:26:33.956] [mlr3]  Applying learner 'classif.featureless' on task 'iris' (iter 2/3) 
INFO  [19:26:33.976] [mlr3]  Applying learner 'classif.featureless' on task 'wine' (iter 3/3) 
INFO  [19:26:34.001] [mlr3]  Finished benchmark 
Error: 'posthoc.friedman.nemenyi.test.default' is defunct.
Use 'PMCMRplus::frdAllPairsNemenyiTest' instead.
See help("Defunct") and help("PMCMR-defunct").
Execution halted