Running 'testthat.R' [54s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 1.3.1.1).
  Find examples and detailed introduction at: https://pbiecek.github.io/ema/
  Additional features will be available after installation of: ggpubr.
  Use 'install_dependencies()' to get all suggested dependencies
  > library(devtools)
  Loading required package: usethis
  
  Attaching package: 'devtools'
  
  The following object is masked from 'package:testthat':
  
      test_file
  
  > library(modelDown)
  > 
  > test_check("modelDown")
  Preparation of a new explainer is initiated
    -> model label       :  ranger  ( [33m default [39m )
    -> data              :  3000  rows  10  cols 
    -> target variable   :  3000  values 
    -> predict function  :  function(model, data) {     return(predict(model, data)$prediction[, 2]) } 
    -> predicted values  :  numerical, min =  0.0007079365 , mean =  0.668359 , max =  1  
    -> model_info        :  package ranger , ver. 0.12.1 , task classification ( [33m default [39m ) 
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.6713548 , mean =  -0.001692342 , max =  0.7075484  
   [32m A new explainer has been created! [39m 
  Preparation of a new explainer is initiated
    -> model label       :  lm  ( [33m default [39m )
    -> data              :  3000  rows  10  cols 
    -> target variable   :  3000  values 
    -> predict function  :  yhat.glm  will be used ( [33m default [39m )
    -> predicted values  :  numerical, min =  0.001706436 , mean =  0.6666667 , max =  1  
    -> model_info        :  package stats , ver. 4.0.2 , task classification ( [33m default [39m ) 
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.9989112 , mean =  1.673978e-09 , max =  0.9848484  
   [32m A new explainer has been created! [39m 
  Preparation of a new explainer is initiated
    -> model label       :  lm  ( [33m default [39m )
    -> data              :  4000  rows  10  cols 
    -> target variable   :  4000  values 
    -> predict function  :  yhat.glm  will be used ( [33m default [39m )
    -> predicted values  :  numerical, min =  0.001281044 , mean =  0.5 , max =  1  
    -> model_info        :  package stats , ver. 4.0.2 , task classification ( [33m default [39m ) 
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  -0.9970616 , mean =  1.253319e-09 , max =  0.9891096  
   [32m A new explainer has been created! [39m 
  [1] "Generating auditor..."
  [1] "Generating drifter..."
  [1] "Generating model_performance..."
  [1] "Generating variable_importance..."
  [1] "Generating variable_response..."
  Preparation of a new explainer is initiated
    -> model label       :  lm  ( [33m default [39m )
    -> data              :  2207  rows  10  cols 
    -> target variable   :  2207  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.glm  will be used ( [33m default [39m )
    -> predicted values  :  numerical, min =  NA , mean =  NA , max =  NA  
    -> model_info        :  package stats , ver. 4.0.2 , task classification ( [33m default [39m ) 
    -> residual function :  difference between y and yhat ( [33m default [39m )
    -> residuals         :  numerical, min =  NA , mean =  NA , max =  NA  
   [32m A new explainer has been created! [39m 
  [1] "Found character variables:"
  [1] "country_character"
  -- 1. Error: (unknown) (@test_parseExplainers.R#2)  ----------------------------
  package or namespace load failed for 'useful' in library.dynam(lib, package, package.lib):
   DLL 'dplyr' not found: maybe not installed for this architecture?
  Backtrace:
   1. base::library(useful)
   2. base::tryCatch(...)
   3. base:::tryCatchList(expr, classes, parentenv, handlers)
   4. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5. value[[3L]](cond)
  
  == testthat results  ===========================================================
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 6 | FAILED: 1 ]
  1. Error: (unknown) (@test_parseExplainers.R#2) 
  
  Error: testthat unit tests failed
  Execution halted