Running ‘testthat.R’ [25s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DALEX)
  Welcome to DALEX (version: 0.4).
  Find examples and detailed introduction at: https://pbiecek.github.io/PM_VEE/
  Additional features will be available after installation of: factorMerger.
  Use 'install_dependencies()' to get all suggested dependencies
  > 
  > test_check("DALEX")
  randomForest 4.6-14
  Type rfNews() to see new features/changes/bug fixes.
  ── 1. Error: test gender (@test_single_feature.R#32)  ──────────────────────────
  there is no package called 'factorMerger'
  1: feature_response(explainer_glm, "gender", which_class = 1) at testthat/test_single_feature.R:32
  2: feature_response.explainer(explainer_glm, "gender", which_class = 1)
  3: feature_response.default(model, data = data, predict_function = predict_function, 
         feature = feature, type = type, label = label, which_class = which_class, ...)
  4: feature_response_1d(x = x, data = data, predict_function = predict_function_1d, feature = feature, 
         type = type, label = label, ...)
  5: factorMerger::mergeFactors
  6: getExportedValue(pkg, name)
  7: asNamespace(ns)
  8: getNamespace(ns)
  9: loadNamespace(name)
  10: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  11: withOneRestart(expr, restarts[[1L]])
  12: doWithOneRestart(return(expr), restart)
  
  ── 2. Error: (unknown) (@test_variable_response.R#8)  ──────────────────────────
  there is no package called 'factorMerger'
  1: variable_response(explainer_regr_rf, variable = "district", type = "factor") at testthat/test_variable_response.R:8
  2: factorMerger::mergeFactors
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: loadNamespace(name)
  7: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 20 SKIPPED: 0 WARNINGS: 4 FAILED: 2
  1. Error: test gender (@test_single_feature.R#32) 
  2. Error: (unknown) (@test_variable_response.R#8) 
  
  Error: testthat unit tests failed
  In addition: Warning message:
  In randomForest.default(m, y, ...) :
    The response has five or fewer unique values.  Are you sure you want to do regression?
  Execution halted