Running ‘testthat.R’ [63s/93s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(parsnip)
  > 
  > test_check("parsnip")
  [1]	training-auc:0.971816 
  [2]	training-auc:0.986139 
  [3]	training-auc:0.989558 
  [4]	training-auc:0.992312 
  [5]	training-auc:0.994991 
  [6]	training-auc:0.995823 
  [7]	training-auc:0.996544 
  [8]	training-auc:0.996359 
  [9]	training-auc:0.996507 
  [10]	training-auc:0.997450 
  [1]	training-auc:0.971816 
  [2]	training-auc:0.986139 
  [3]	training-auc:0.989558 
  [4]	training-auc:0.992312 
  [5]	training-auc:0.994991 
  [6]	training-auc:0.995823 
  [7]	training-auc:0.996544 
  [8]	training-auc:0.996359 
  [9]	training-auc:0.996507 
  [10]	training-auc:0.997450 
  [ FAIL 4 | WARN 0 | SKIP 39 | PASS 1066 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • C50 cannot be loaded (5)
  • On CRAN (14)
  • earth cannot be loaded (4)
  • flexsurv cannot be loaded (2)
  • nnet cannot be loaded (9)
  • tune_check() is TRUE (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test_fit_interfaces.R:73:3): unknown modes ─────────────────────────
  `fit_xy(mars_spec, x = mtcars[, -1], y = mtcars[, 1])` threw an error.
  Message: This engine requires some package installs: 'earth'
  Class:   rlang_error/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test_fit_interfaces.R:73:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(mars_spec, x = mtcars[, -1], y = mtcars[, 1])
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::check_installs(object)
   9.     └─rlang::abort(...)
  ── Failure (test_fit_interfaces.R:77:3): unknown modes ─────────────────────────
  `fit_xy(mars_spec, x = lending_club[, 1:2], y = lending_club$Class)` threw an error.
  Message: This engine requires some package installs: 'earth'
  Class:   rlang_error/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test_fit_interfaces.R:77:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. ├─generics::fit_xy(mars_spec, x = lending_club[, 1:2], y = lending_club$Class)
   7. └─parsnip::fit_xy.model_spec(...)
   8.   └─parsnip:::check_installs(object)
   9.     └─rlang::abort(...)
  ── Error (test_misc.R:22:3): parsnip objects ───────────────────────────────────
  Error in `check_installs(object)`: This engine requires some package installs: 'earth'
  Backtrace:
      ▆
   1. ├─mars(mode = "regression") %>% set_engine("earth") %>% ... at test_misc.R:22:2
   2. ├─generics::fit(., mpg ~ ., data = mtcars)
   3. └─parsnip::fit.model_spec(., mpg ~ ., data = mtcars)
   4.   └─parsnip:::check_installs(object)
   5.     └─rlang::abort(...)
  ── Failure (test_packages.R:37:5): missing packages ────────────────────────────
  any(names(sessionInfo()$loadedOnly) == "earth") is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 4 | WARN 0 | SKIP 39 | PASS 1066 ]
  Error: Test failures
  Execution halted