Package check result: ERROR Check: examples, Result: 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 Error in model$prmdt <- `*vtmp*` : ALTLIST classes must provide a Set_elt method [class: XGBAltrepPointerClass, pkg: xgboost] Calls: train.xgboost -> create.model Execution halted