* using log directory 'd:/Rcompile/CRANpkg/local/4.4/mlr3tuning.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'mlr3tuning/DESCRIPTION' ... OK * this is package 'mlr3tuning' version '1.5.0' * package encoding: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'mlr3tuning' can be installed ... OK * checking installed package size ... OK * checking package directory ... 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] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [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 ... [30s] OK * checking Rd files ... [4s] OK * checking Rd metadata ... 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 ... [53s] ERROR 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 [09:07:27.384] [bbotk] Starting to optimize 0 parameter(s) with '' and '' INFO [09:07:27.388] [bbotk] Evaluating 1 configuration(s) INFO [09:07:27.411] [mlr3] Running benchmark with 3 resampling iterations INFO [09:07:27.459] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 1/3) INFO [09:07:27.557] [mlr3] Applying learner 'classif.xgboost' on task 'iris' (iter 2/3) INFO [09:07:27.626] [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 -> -> onError Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [538s] OK Running 'testthat.R' [537s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [2s] OK * checking PDF version of manual ... [25s] OK * checking HTML version of manual ... [20s] OK * DONE Status: 1 ERROR