Package check result: ERROR Check: examples, Result: ERROR Running examples in ‘flevr-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: extract_importance_xgboost > ### Title: Extract the learner-specific importance from an xgboost object > ### Aliases: extract_importance_xgboost > > ### ** Examples > > ## No test: > data("biomarkers") > # subset to complete cases for illustration > cc <- complete.cases(biomarkers) > dat_cc <- biomarkers[cc, ] > # use only the mucinous outcome, not the high-malignancy outcome > y <- dat_cc$mucinous > x <- as.matrix(dat_cc[, !(names(dat_cc) %in% c("mucinous", "high_malignancy"))]) > feature_nms <- names(x) > set.seed(20231129) > xgbmat <- xgboost::xgb.DMatrix(data = x, label = y) > # get the fit, using a small number of rounds for illustration only > fit <- xgboost::xgboost(data = xgbmat, objective = "binary:logistic", nthread = 1, nrounds = 10) Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", : Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version. Error in xgboost::xgboost(data = xgbmat, objective = "binary:logistic", : argument "y" is missing, with no default Calls: -> process.y.margin.and.objective -> NROW Execution halted