- using R Under development (unstable) (2025-12-06 r89118)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-9) 15.2.0
GNU Fortran (Debian 15.2.0-9) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘mlr3tuning/DESCRIPTION’ ... OK
- this is package ‘mlr3tuning’ version ‘1.5.0’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] OK
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘mlr3tuning’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] OK
- checking whether startup messages can be suppressed ... [1s/1s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [22s/29s] OK
- checking Rd files ... [1s/2s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [28s/44s] 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(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 [17:09:47.768] [bbotk] Starting to optimize 0 parameter(s) with '<TunerBatchInternal>' and '<TerminatorNone>'
INFO [17:09:47.771] [bbotk] Evaluating 1 configuration(s)
INFO [17:09:47.781] [mlr3] Running benchmark with 3 resampling iterations
INFO [17:09:47.808] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 1/3)
INFO [17:09:47.853] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 2/3)
INFO [17:09:47.898] [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
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
mlr3tuning.one_se_rule 4.936 0.056 7.368
AutoTuner 4.717 0.264 7.604
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [300s/398s] OK
Running ‘testthat.R’ [299s/397s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [1s/1s] OK
- checking PDF version of manual ... [9s/11s] OK
- checking HTML version of manual ... [9s/11s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR