* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/DALEXtra.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘DALEXtra/DESCRIPTION’ ... OK * this is package ‘DALEXtra’ version ‘2.3.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 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 ‘DALEXtra’ can be installed ... [10s/10s] OK * checking package 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... [15s/15s] OK * checking Rd files ... 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 ... ERROR Running examples in ‘DALEXtra-Ex.R’ failed The error most likely occurred in: > ### Name: explain_xgboost > ### Title: Create explainer from your xgboost model > ### Aliases: explain_xgboost > > ### ** Examples > > library("xgboost") > library("DALEXtra") > library("mlr") Loading required package: ParamHelpers > # 8th column is target that has to be omitted in X data > data <- as.matrix(createDummyFeatures(titanic_imputed[,-8])) > model <- xgboost(data, titanic_imputed$survived, nrounds = 10, + params = list(objective = "binary:logistic"), + prediction = TRUE) Warning in throw_err_or_depr_msg("Parameter(s) have been removed from this function: ", : Parameter(s) have been removed from this function: params. This warning will become an error in a future version. Warning in throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), : Passed unrecognized parameters: prediction. This warning will become an error in a future version. > # explainer with encode functiom > explainer_1 <- explain_xgboost(model, data = titanic_imputed[,-8], + titanic_imputed$survived, + encode_function = function(data) { + as.matrix(createDummyFeatures(data)) + }) Preparation of a new explainer is initiated -> model label : xgb.Booster (  default  ) -> data : 2207 rows 7 cols -> target variable : 2207 values -> predict function : yhat.xgb.Booster will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) Error in strsplit(model$params$objective, ":", fixed = TRUE) : non-character argument Calls: explain_xgboost ... explain -> model_info -> model_info.xgb.Booster -> strsplit Execution halted * checking examples with --run-donttest ... [28s/46s] ERROR Running examples in ‘DALEXtra-Ex.R’ failed The error most likely occurred in: > ### Name: explain_xgboost > ### Title: Create explainer from your xgboost model > ### Aliases: explain_xgboost > > ### ** Examples > > library("xgboost") > library("DALEXtra") > library("mlr") Loading required package: ParamHelpers > # 8th column is target that has to be omitted in X data > data <- as.matrix(createDummyFeatures(titanic_imputed[,-8])) > model <- xgboost(data, titanic_imputed$survived, nrounds = 10, + params = list(objective = "binary:logistic"), + prediction = TRUE) Warning in throw_err_or_depr_msg("Parameter(s) have been removed from this function: ", : Parameter(s) have been removed from this function: params. This warning will become an error in a future version. Warning in throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), : Passed unrecognized parameters: prediction. This warning will become an error in a future version. > # explainer with encode functiom > explainer_1 <- explain_xgboost(model, data = titanic_imputed[,-8], + titanic_imputed$survived, + encode_function = function(data) { + as.matrix(createDummyFeatures(data)) + }) Preparation of a new explainer is initiated -> model label : xgb.Booster (  default  ) -> data : 2207 rows 7 cols -> target variable : 2207 values -> predict function : yhat.xgb.Booster will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) Error in strsplit(model$params$objective, ":", fixed = TRUE) : non-character argument Calls: explain_xgboost ... explain -> model_info -> model_info.xgb.Booster -> strsplit Execution halted Error in h2o.getConnection() : No active connection to an H2O cluster. Did you run `h2o.init()` ? Calls: ... .h2o.doREST -> stopifnot -> is -> h2o.getConnection * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [297s/297s] [297s/297s] ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(DALEXtra) Loading required package: DALEX Welcome to DALEX (version: 2.5.3). Find examples and detailed introduction at: http://ema.drwhy.ai/ > > test_check("DALEXtra") Preparation of a new explainer is initiated -> model label : LM -> data : 9000 rows 6 cols -> target variable : 9000 values -> predict function : yhat.WrappedModel will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) -> model_info : package mlr , ver. 2.19.3 , task regression (  default  ) -> predicted values : numerical, min = 1792.597 , mean = 3506.836 , max = 6241.447 -> residual function : difference between y and yhat (  default  ) -> residuals : numerical, min = -257.2555 , mean = 4.687686 , max = 472.356  A new explainer has been created!  Preparation of a new explainer is initiated -> model label : RF -> data : 9000 rows 6 cols -> target variable : 9000 values -> predict function : yhat.WrappedModel will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) -> model_info : package mlr , ver. 2.19.3 , task regression (  default  ) -> predicted values : numerical, min = 1797.409 , mean = 3505.982 , max = 6267.976 -> residual function : difference between y and yhat (  default  ) -> residuals : numerical, min = -546.6965 , mean = 5.541839 , max = 746.3977  A new explainer has been created!  Preparation of a new explainer is initiated -> model label : GBM -> data : 9000 rows 6 cols -> target variable : 9000 values -> predict function : yhat.WrappedModel will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) -> model_info : package mlr , ver. 2.19.3 , task regression (  default  ) -> predicted values : numerical, min = 2127.056 , mean = 3501.805 , max = 6056.074 -> residual function : difference between y and yhat (  default  ) -> residuals : numerical, min = -537.9237 , mean = 9.718247 , max = 721.6465  A new explainer has been created!  additional arguments ignored in warning() Preparation of a new explainer is initiated -> model label : ranger (  default  ) -> data : 2207 rows 7 cols -> target variable : 2207 values -> predict function : yhat.ranger will be used (  default  ) -> predicted values : No value for predict function target column. (  default  ) -> model_info : package ranger , ver. 0.17.0 , task classification (  default  ) -> predicted values : numerical, min = 0.01439623 , mean = 0.3219786 , max = 0.988391 -> residual function : difference between y and yhat (  default  ) -> residuals : numerical, min = -0.785221 , mean = 0.0001781906 , max = 0.8867297  A new explainer has been created!  additional arguments ignored in warning() Saving _problems/test_xgboost_explain-13.R Saving _problems/test_xgboost_explain-31.R Saving _problems/test_xgboost_explain-50.R [ FAIL 3 | WARN 15 | SKIP 11 | PASS 44 ] ══ Skipped tests (11) ══════════════════════════════════════════════════════════ • Conda test env needed for tests (6): 'test_create_env.R:6:3', 'test_create_env.R:27:3', 'test_create_env.R:40:3', 'test_keras_explain.R:6:2', 'test_scikitlearn_explain.R:6:3', 'tests_prints.R:8:3' • JAVA entry needed for tests (4): 'test_h2o_explain.R:8:3', 'test_h2o_explain.R:33:3', 'test_h2o_explain.R:56:3', 'test_h2o_explain.R:90:3' • Test with windows (1): 'test_champion_challenger.R:5:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_xgboost_explain.R:11:3'): creating explainer classif ─────────── Error in `strsplit(model$params$objective, ":", fixed = TRUE)`: non-character argument Backtrace: ▆ 1. └─DALEXtra::explain_xgboost(...) at test_xgboost_explain.R:11:3 2. └─DALEX::explain(...) 3. ├─DALEX::model_info(model, is_multiclass = task_subtype) 4. └─DALEXtra:::model_info.xgb.Booster(model, is_multiclass = task_subtype) 5. └─base::strsplit(model$params$objective, ":", fixed = TRUE) ── Error ('test_xgboost_explain.R:29:3'): creating explainer regr ────────────── Error in `strsplit(model$params$objective, ":", fixed = TRUE)`: non-character argument Backtrace: ▆ 1. └─DALEXtra::explain_xgboost(...) at test_xgboost_explain.R:29:3 2. └─DALEX::explain(...) 3. ├─DALEX::model_info(model, is_multiclass = task_subtype) 4. └─DALEXtra:::model_info.xgb.Booster(model, is_multiclass = task_subtype) 5. └─base::strsplit(model$params$objective, ":", fixed = TRUE) ── Error ('test_xgboost_explain.R:48:3'): creating explainer multi ───────────── Error in `strsplit(model$params$objective, ":", fixed = TRUE)`: non-character argument Backtrace: ▆ 1. └─DALEXtra::explain_xgboost(...) at test_xgboost_explain.R:48:3 2. └─DALEX::explain(...) 3. ├─DALEX::model_info(model, is_multiclass = task_subtype) 4. └─DALEXtra:::model_info.xgb.Booster(model, is_multiclass = task_subtype) 5. └─base::strsplit(model$params$objective, ":", fixed = TRUE) [ FAIL 3 | WARN 15 | SKIP 11 | PASS 44 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 3 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/DALEXtra.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 7:23.46, 383.51 + 40.07