Running ‘testthat.R’ [21s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(DriveML)
  > 
  > test_check("DriveML")
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%
  ── 1. Error: test output object (@test_automodel.R#10)  ────────────────────────
  there is no package called 'tidyr'
  Backtrace:
    1. DriveML::autoMLmodel(...)
    2. DriveML:::betaml(model$model, modName)
    3. mlr::getFeatureImportance(model)
    4. tidyr::pivot_longer
    5. base::getExportedValue(pkg, name)
    6. base::asNamespace(ns)
    7. base::getNamespace(ns)
    8. base::loadNamespace(name)
    9. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10. base:::withOneRestart(expr, restarts[[1L]])
   11. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: (unknown) (@test_pdp.R#3)  ────────────────────────────────────────
  there is no package called 'tidyr'
  Backtrace:
    1. DriveML::autoMLmodel(...)
    2. DriveML:::betaml(model$model, modName)
    3. mlr::getFeatureImportance(model)
    4. tidyr::pivot_longer
    5. base::getExportedValue(pkg, name)
    6. base::asNamespace(ns)
    7. base::getNamespace(ns)
    8. base::loadNamespace(name)
    9. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10. base:::withOneRestart(expr, restarts[[1L]])
   11. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 19 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 2 ]
  1. Error: test output object (@test_automodel.R#10) 
  2. Error: (unknown) (@test_pdp.R#3) 
  
  Error: testthat unit tests failed
  Execution halted