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

> ### Name: mlr_tuners_internal
> ### Title: Hyperparameter Tuning with Internal Tuning
> ### Aliases: mlr_tuners_internal TunerBatchInternal
> 
> ### ** Examples
> 
> ## Don't show: 
> if (mlr3misc::require_namespaces(c("mlr3learners", "xgboost"), quietly = TRUE)) withAutoprint({ # examplesIf
+ ## End(Don't show)
+ library(mlr3learners)
+ 
+ # Retrieve task
+ task = tsk("pima")
+ 
+ # Load learner and set search space
+ learner = lrn("classif.xgboost",
+   nrounds = to_tune(upper = 1000, internal = TRUE),
+   early_stopping_rounds = 10,
+   validate = "test",
+   eval_metric = "merror"
+ )
+ 
+ # Internal hyperparameter tuning on the pima indians diabetes data set
+ instance = tune(
+   tnr("internal"),
+   tsk("iris"),
+   learner,
+   rsmp("cv", folds = 3),
+   msr("internal_valid_score", minimize = TRUE, select = "merror")
+ )
+ 
+ # best performing hyperparameter configuration
+ instance$result_learner_param_vals
+ 
+ instance$result_learner_param_vals$internal_tuned_values
+ ## Don't show: 
+ }) # examplesIf
> library(mlr3learners)
> task = tsk("pima")
> learner = lrn("classif.xgboost", nrounds = to_tune(upper = 1000, internal = TRUE), 
+     early_stopping_rounds = 10, validate = "test", eval_metric = "merror")
> instance = tune(tnr("internal"), tsk("iris"), learner, rsmp("cv", folds = 3), 
+     msr("internal_valid_score", minimize = TRUE, select = "merror"))
INFO  [10:08:59.361] [bbotk] Starting to optimize 0 parameter(s) with '<TunerBatchInternal>' and '<TerminatorNone>'
INFO  [10:08:59.369] [bbotk] Evaluating 1 configuration(s)
INFO  [10:08:59.409] [mlr3] Running benchmark with 3 resampling iterations
INFO  [10:08:59.504] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 1/3)
INFO  [10:08:59.645] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 2/3)
INFO  [10:08:59.774] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 3/3)
Warning in check.deprecation(deprecated_train_params, match.call(), ...) :
  Passed invalid function arguments: eval_metric, nthread, num_class. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '",  :
  Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
Warning in check.custom.obj(params, objective) :
  Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Warning in check.deprecation(deprecated_train_params, match.call(), ...) :
  Passed invalid function arguments: eval_metric, nthread, num_class. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '",  :
  Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
Warning in check.custom.obj(params, objective) :
  Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Warning in check.deprecation(deprecated_train_params, match.call(), ...) :
  Passed invalid function arguments: eval_metric, nthread, num_class. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '",  :
  Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
Warning in check.custom.obj(params, objective) :
  Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Warning: Caught simpleError. Canceling all iterations ...
Warning in check.deprecation(deprecated_train_params, match.call(), ...) :
  Passed invalid function arguments: eval_metric, nthread, num_class. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '",  :
  Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
Warning in check.custom.obj(params, objective) :
  Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Warning in check.deprecation(deprecated_train_params, match.call(), ...) :
  Passed invalid function arguments: eval_metric, nthread, num_class. These should be passed as a list to argument 'params'. Conversion from argument to 'params' entry will be done automatically, but this behavior will become an error in a future version.
Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '",  :
  Parameter 'watchlist' has been renamed to 'evals'. This warning will become an error in a future version.
Warning in check.custom.obj(params, objective) :
  Argument 'objective' is only for custom objectives. For built-in objectives, pass the objective under 'params'. This warning will become an error in a future version.
Error in names(x) <- nm : attempt to set an attribute on NULL
Calls: withAutoprint ... tryCatchList -> tryCatchOne -> <Anonymous> -> onError
Execution halted