Running ‘testthat.R’ [13s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  ── 1. Error: (unknown) (@test-earth.R#5)  ──────────────────────────────────────
  there is no package called 'parsnip'
  Backtrace:
   1. parsnip::mars
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: (unknown) (@test-ranger.R#26)  ────────────────────────────────────
  there is no package called 'parsnip'
  Backtrace:
    1. tidypredict:::run_test(...)
    3. parsnip::fit
    4. base::getExportedValue(pkg, name)
    5. base::asNamespace(ns)
    6. base::getNamespace(ns)
    7. base::loadNamespace(name)
    8. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9. base:::withOneRestart(expr, restarts[[1L]])
   10. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: (unknown) (@test-rf.R#28)  ────────────────────────────────────────
  there is no package called 'parsnip'
  Backtrace:
    1. tidypredict:::run_tests(...)
    3. parsnip::fit
    4. base::getExportedValue(pkg, name)
    5. base::asNamespace(ns)
    6. base::getNamespace(ns)
    7. base::loadNamespace(name)
    8. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9. base:::withOneRestart(expr, restarts[[1L]])
   10. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: Predictions within threshold and parsed model results are equal (@t
  there is no package called 'parsnip'
  Backtrace:
    1. testthat::expect_false(...)
    6. tidypredict:::lm_parsnip(mpg ~ wt, offset = am, data = df)
    7. parsnip::fit
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   13. base:::withOneRestart(expr, restarts[[1L]])
   14. base:::doWithOneRestart(return(expr), restart)
  
  [23:27:00] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:01] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:01] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:01] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:01] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:01] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  ── 5. Error: Predictions are correct for different objectives (@test_xgboost.R#4
  there is no package called 'parsnip'
  Backtrace:
   1. parsnip::fit
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  [23:27:02] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  [23:27:03] WARNING: amalgamation/../src/learner.cc:480: 
  Parameters: { silent } might not be used.
  
    This may not be accurate due to some parameters are only used in language bindings but
    passed down to XGBoost core.  Or some parameters are not used but slip through this
    verification. Please open an issue if you find above cases.
  
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 65 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 5 ]
  1. Error: (unknown) (@test-earth.R#5) 
  2. Error: (unknown) (@test-ranger.R#26) 
  3. Error: (unknown) (@test-rf.R#28) 
  4. Error: Predictions within threshold and parsed model results are equal (@test_lm.R#26) 
  5. Error: Predictions are correct for different objectives (@test_xgboost.R#47) 
  
  Error: testthat unit tests failed
  Execution halted