Running ‘testthat.R’ [22s/24s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 90 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (9): 'test-earth.R:166:3', 'test-party.R:30:3', 'test-rf.R:15:5',
    'test-rf.R:15:5', 'test-rf.R:41:3', 'test_glm.R:40:3', 'test_lm.R:49:3',
    'test_xgboost.R:84:7', 'test_xgboost.R:108:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cubist.R:3:1'): (code run outside of `test_that()`) ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'Cubist'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-cubist.R:3:1
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-ranger.R:4:3'): (code run outside of `test_that()`) ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'ranger'
  Backtrace:
      ▆
   1. ├─tidypredict (local) run_test(...) at test-ranger.R:20:1
   2. │ └─tidypredict::tidypredict_fit(model) at test-ranger.R:4:3
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-tester.R:23:3'): Error is returned for tree based models ───────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'ranger'
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-tester.R:23:3
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─tidypredict::tidypredict_test(...)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base (local) withOneRestart(expr, restarts[[1L]])
   11.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 9 | PASS 90 ]
  Error: Test failures
  Execution halted