Package: mlr3tuning 1.4.0
Check: examples, Result: ERROR
  Running examples in ‘mlr3tuning-Ex.R’ failed
  The error most likely occurred in:
  
  > base::assign(".ptime", proc.time(), pos = "CheckExEnv")
  > ### Name: mlr_tuners_internal
  > ### Title: Hyperparameter Tuning with Internal Tuning
  > ### Aliases: mlr_tuners_internal TunerBatchInternal
  > 
  > ### ** Examples
  > 
  > ## Don't show: 
  > if (mlr3misc::require_namespaces("mlr3learners", "xgboost", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)({ # 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  [21:26:27.389] [bbotk] Starting to optimize 0 parameter(s) with '<TunerBatchInternal>' and '<TerminatorNone>'
  INFO  [21:26:27.391] [bbotk] Evaluating 1 configuration(s)
  INFO  [21:26:27.403] [mlr3] Running benchmark with 3 resampling iterations
  INFO  [21:26:27.426] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 1/3)
  INFO  [21:26:29.762] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 2/3)
  INFO  [21:26:31.119] [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: <Anonymous> ... tryCatchList -> tryCatchOne -> <Anonymous> -> onError
  Execution halted
