* using log directory ‘/home/hornik/tmp/CRAN_special_donttest/traineR.Rcheck’ * using R Under development (unstable) (2025-12-07 r89119) * 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 * using option ‘--run-donttest’ * checking for file ‘traineR/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘traineR’ version ‘2.2.4’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [7s/10s] 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 whether package ‘traineR’ can be installed ... [17s/17s] OK * checking package directory ... OK * checking for future file timestamps ... 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 ... [4s/4s] OK * checking whether the package can be loaded with stated dependencies ... [4s/5s] OK * checking whether the package can be unloaded cleanly ... [4s/4s] OK * checking whether the namespace can be loaded with stated dependencies ... [4s/4s] OK * checking whether the namespace can be unloaded cleanly ... [4s/4s] OK * checking loading without being on the library search path ... [5s/5s] 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/22s] OK * checking Rd files ... [1s/1s] 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 examples ... [83s/25s] ERROR Running examples in ‘traineR-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: train.xgboost > ### Title: train.xgboost > ### Aliases: train.xgboost > > ### ** Examples > > > ## No test: > # Classification > data("iris") > > n <- seq_len(nrow(iris)) > .sample <- sample(n, length(n) * 0.75) > data.train <- iris[.sample,] > data.test <- iris[-.sample,] > > modelo.xg <- train.xgboost(Species~., data.train, nrounds = 10, maximize = FALSE) Warning in check.deprecation(deprecated_train_params, match.call(), ...) : Passed invalid function arguments: eval_metric. 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. [1] train-mlogloss:0.738285 [2] train-mlogloss:0.527359 [3] train-mlogloss:0.390308 [4] train-mlogloss:0.296220 [5] train-mlogloss:0.229717 [6] train-mlogloss:0.181500 [7] train-mlogloss:0.145874 [8] train-mlogloss:0.120036 [9] train-mlogloss:0.100249 [10] train-mlogloss:0.084281 > modelo.xg ##### xgb.Booster call: xgb.train(params = params, data = train_aux, nrounds = nrounds, verbose = verbose, print_every_n = print_every_n, early_stopping_rounds = early_stopping_rounds, maximize = maximize, save_period = save_period, save_name = save_name, xgb_model = xgb_model, callbacks = callbacks, eval_metric = "mlogloss", watchlist = watchlist) # of features: 4 # of rounds: 10 callbacks: evaluation_log evaluation_log: iter train_mlogloss 1 0.73828501 2 0.52735880 --- --- 9 0.10024916 10 0.08428103 > prob <- predict(modelo.xg, data.test, type = "prob") Error in if (predleaf) { : argument is of length zero Calls: predict ... predict.xgb.Booster.prmdt -> predict -> predict.xgb.Booster Execution halted * checking PDF version of manual ... [6s/6s] OK * checking HTML version of manual ... [4s/4s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR