Running ‘testthat.R’ [33s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 1.3.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
  Preparation of a new explainer is initiated
    -> model label       :  ranger  ( [33m default [39m )
    -> data              :  7847  rows  6  cols 
    -> target variable   :  7847  values 
    -> target variable   :  Please note that 'y' is a factor.  ( [31m WARNING [39m )
    -> target variable   :  Consider changing the 'y' to a logical or numerical vector.
    -> target variable   :  Otherwise I will not be able to calculate residuals or loss function.
    -> predict function  :  yhat.ranger  will be used ( [33m default [39m )
    -> predicted values  :  predict function returns multiple columns:  3  ( [31m WARNING [39m ) some of functionalities may not work 
    -> model_info        :  package ranger , ver. 0.12.1 , task multiclass ( [33m default [39m ) 
    -> residual function :  difference between 1 and probability of true class ( [33m default [39m )
    -> residuals         :  numerical, min =  0.0003590982 , mean =  0.2795938 , max =  0.9124988  
   [32m A new explainer has been created! [39m 
  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 4 out of 6. 
   Variables district, surface, floor have the highest importantance. 
  ── 1. Failure: parsnip (@test_yhat_model_info.R#164)  ──────────────────────────
  explainer_classif_parsnip$y_hat inherits from `NULL` not `numeric`.
  
  ── 2. Failure: parsnip (@test_yhat_model_info.R#166)  ──────────────────────────
  explainer_regr_parsnip$y_hat inherits from `NULL` not `numeric`.
  
  ── 3. Error: parsnip (@test_yhat_model_info.R#168)  ────────────────────────────
  argument is of length zero
  Backtrace:
    1. testthat::expect_length(...)
    4. DALEX:::yhat.model_fit(...)
    7. parsnip::predict.model_fit(X.model, newdata, type = "prob")
    9. parsnip::predict_classprob.model_fit(...)
   10. parsnip:::prepare_data(object, new_data)
   11. parsnip:::convert_form_to_xy_new(object$preproc, new_data)
  
  Wrapper package: caret 
  Wrapper package version: 6.0.86 
  Package: randomForest 
  Package version: 4.6.14 
  Task type: classification══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 174 | SKIPPED: 0 | WARNINGS: 6 | FAILED: 3 ]
  1. Failure: parsnip (@test_yhat_model_info.R#164) 
  2. Failure: parsnip (@test_yhat_model_info.R#166) 
  3. Error: parsnip (@test_yhat_model_info.R#168) 
  
  Error: testthat unit tests failed
  Execution halted