Running ‘testthat.R’ [51s/80s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  [ FAIL 5 | WARN 0 | SKIP 8 | PASS 68 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (8)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-earth.R:3'): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'parsnip'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-earth.R:3:0
   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:24'): (code run outside of `test_that()`) ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'parsnip'
  Backtrace:
      ▆
   1. ├─tidypredict (local) run_test(...) at test-ranger.R:24:0
   2. │ └─tidypredict::tidypredict_fit(model) at test-ranger.R:4:2
   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-rf.R:27'): (code run outside of `test_that()`) ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'parsnip'
  Backtrace:
      ▆
   1. ├─tidypredict (local) run_tests(...) at test-rf.R:27:0
   2. │ └─tidypredict::tidypredict_fit(model) at test-rf.R:4:2
   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_lm.R:36'): Predictions within threshold and parsed model results are equal ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'parsnip'
  Backtrace:
       ▆
    1. ├─testthat::expect_false(...) at test_lm.R:36:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tidypredict (local) has_alert(lm_parsnip(mpg ~ wt, offset = am, data = df))
    5. │ └─tidypredict::tidypredict_test(model, df = df, include_intervals = TRUE) at test_lm.R:4:13
    6. ├─tidypredict (local) lm_parsnip(mpg ~ wt, offset = am, data = df)
    7. └─base::loadNamespace(x) at test_lm.R:29:2
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_xgboost.R:114'): Predictions are correct for different objectives ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'parsnip'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_xgboost.R:114:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 5 | WARN 0 | SKIP 8 | PASS 68 ]
  Error: Test failures
  Execution halted