Running ‘testthat.R’ [180s/248s]
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/
  Additional features will be available after installation of: ggpubr.
  Use 'install_dependencies()' to get all suggested dependencies
  > 
  > 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 ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package mlr , ver. 2.19.3 , task regression ( [33m default [39m ) 
    -> predicted values  :  numerical, min =  1792.597 , mean =  3506.836 , max =  6241.447  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -257.2555 , mean =  4.687686 , max =  472.356  
   [32m A new explainer has been created! [39m 
  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 ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package mlr , ver. 2.19.3 , task regression ( [33m default [39m ) 
    -> predicted values  :  numerical, min =  1796.868 , mean =  3504.68 , max =  6263.542  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -572.6776 , mean =  6.84398 , max =  760.1176  
   [32m A new explainer has been created! [39m 
  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 ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package mlr , ver. 2.19.3 , task regression ( [33m default [39m ) 
    -> predicted values  :  numerical, min =  2121.745 , mean =  3501.312 , max =  6066.756  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -518.7453 , mean =  10.2117 , max =  760.0948  
   [32m A new explainer has been created! [39m 
  additional arguments ignored in warning()
  Preparation of a new explainer is initiated
    -> model label       :  ranger  ( [33m default [39m )
    -> data              :  2207  rows  7  cols 
    -> target variable   :  2207  values 
    -> predict function  :  yhat.ranger  will be used ( [33m default [39m )
    -> predicted values  :  No value for predict function target column. ( [33m default [39m )
    -> model_info        :  package ranger , ver. 0.17.0 , task classification ( [33m default [39m ) 
    -> predicted values  :  numerical, min =  0.01356347 , mean =  0.3220098 , max =  0.9911675  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.7853368 , mean =  0.0001470208 , max =  0.8899344  
   [32m A new explainer has been created! [39m 
  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