Running ‘testthat.R’ [35s/67s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 1.2.0).
  Find examples and detailed introduction at: https://pbiecek.github.io/ema/
  
  > 
  > test_check("DALEX")
  Package: ranger 
  Package version: 0.12.1 
  Task type: regressionModel label:  ranger 
  Model class:  ranger 
  Data head  :
    construction.year surface floor no.rooms    district
  1              1953      25     3        1 Srodmiescie
  2              1992     143     9        5     Bielany
  Measures for:  regression
  mse      : 79358.95 
  rmse     : 281.7072 
  r2       : 0.900389 
  mad      : 211.999
  
  Residuals:
         0%       10%       20%       30%       40%       50%       60%       70% 
  -249.1437 -223.8050 -208.7184 -195.0442 -184.4288 -175.5123 -161.8545  366.1237 
        80%       90%      100% 
   396.9122  424.0089  470.8357 
  The number of important variables for ranger's prediction is 2 out of 6. 
   Variables district, surface have the highest importantance. 
  ── 1. Error: parsnip (@test_yhat_model_info.R#169)  ────────────────────────────
  object 'gender' not found
  Backtrace:
    1. testthat::expect_length(...)
    4. DALEX:::yhat.model_fit(parsnip_regr, apartments_cut[1, ])
    6. parsnip::predict.model_fit(X.model, newdata)
    8. parsnip::predict_numeric.model_fit(...)
    9. parsnip:::prepare_data(object, new_data)
   10. parsnip:::convert_form_to_xy_new(object$preproc, new_data)
   12. stats::model.frame.default(...)
   13. [ base::eval(...) ] with 1 more call
  
  Wrapper package: caret 
  Wrapper package version: 6.0.86 
  Package: randomForest 
  Package version: 4.6.14 
  Task type: Classification── 2. Error: caret (@test_yhat_model_info.R#203)  ──────────────────────────────
  undefined columns selected
  Backtrace:
   1. testthat::expect_length(...)
   4. DALEX:::yhat.train(caret_classif, titanic_imputed_cut[1, ])
   6. caret::predict.train(X.model, newdata = newdata, type = "prob")
   8. base::`[.data.frame`(out, , obsLevels, drop = FALSE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 175 | SKIPPED: 0 | WARNINGS: 6 | FAILED: 2 ]
  1. Error: parsnip (@test_yhat_model_info.R#169) 
  2. Error: caret (@test_yhat_model_info.R#203) 
  
  Error: testthat unit tests failed
  Execution halted