Running ‘testthat.R’ [17s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidypredict)
  > 
  > test_check("tidypredict")
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:27] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:29] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [16:30:30] WARNING: amalgamation/../src/learner.cc:627: 
  Parameters: { "silent" } might not be used.
  
    This could be a false alarm, with some parameters getting used by language bindings but
    then being mistakenly passed down to XGBoost core, or some parameter actually being used
    but getting flagged wrongly here. Please open an issue if you find any such cases.
  
  
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 80 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-cubist.R:4: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:4:0
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-earth.R:3:1): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'earth'
  Backtrace:
      ▆
   1. └─utils::data("etitanic", package = "earth") at test-earth.R:3:0
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error (test-party.R:17:3): Predictions within threshold and parsed model results are equal ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'partykit'
  Backtrace:
      ▆
   1. ├─testthat::expect_false(...) at test-party.R:17:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─tidypredict has_alert(partykit::ctree(mpg ~ am + cyl, data = df))
   5. │ └─tidypredict::tidypredict_test(model, df = df) at test-party.R:14:13
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base withOneRestart(expr, restarts[[1L]])
   9.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-party.R:28:3): Model can be saved and re-loaded ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'partykit'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-party.R:28:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 1 | SKIP 0 | PASS 80 ]
  Error: Test failures
  Execution halted