Running ‘testthat.R’ [140s/204s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 1.0.1).
  Find examples and detailed introduction at: https://pbiecek.github.io/ema/
  
  > library(ingredients)
  
  Attaching package: 'ingredients'
  
  The following object is masked from 'package:DALEX':
  
      feature_importance
  
  The following object is masked from 'package:testthat':
  
      describe
  
  > 
  > test_check("ingredients")
  randomForest 4.6-14
  Type rfNews() to see new features/changes/bug fixes.
  Preparation of a new explainer is initiated
    -> model label       :  RF 
    -> data              :  461  rows  9  cols 
    -> target variable   :  461  values 
    -> model_info        :  package randomForest , ver. 4.6.14 , task classification ( [33m default [39m ) 
    -> predict function  :  yhat.randomForest  will be used ( [33m default [39m )
    -> predicted values  :  numerical, min =  0 , mean =  0.3930672 , max =  0.996  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.652 , mean =  0.01257267 , max =  0.898  
   [32m A new explainer has been created! [39m 
  ── 1. Error: plotD3 Ceteris Paribus and plotD3 Aggregated Profiles (@test_plotD3
  no applicable method for 'droplevels' applied to an object of class "character"
  Backtrace:
   1. ingredients::plotD3(...)
   2. ingredients:::plotD3.ceteris_paribus_explainer(...)
   3. base::droplevels(all_profiles$`_vname_`)
  
  Preparation of a new explainer is initiated
    -> model label       :  RF 
    -> data              :  65  rows  4  cols 
    -> target variable   :  65  values 
    -> model_info        :  package randomForest , ver. 4.6.14 , task classification ( [33m default [39m ) 
    -> predict function  :  yhat.randomForest  will be used ( [33m default [39m )
    -> predicted values  :  numerical, min =  0.006 , mean =  0.3797846 , max =  0.948  
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.45 , mean =  0.05098462 , max =  0.768  
   [32m A new explainer has been created! [39m 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 113 | SKIPPED: 0 | WARNINGS: 5 | FAILED: 1 ]
  1. Error: plotD3 Ceteris Paribus and plotD3 Aggregated Profiles (@test_plotD3.R#45) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In Ops.factor(y, predict_function(model, data)) :
    '-' not meaningful for factors
  Execution halted