Running ‘spelling.R’
  Running ‘testthat.R’ [13s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(discrim)
  Loading required package: parsnip
  > 
  > test_check("discrim")
  ── 1. Failure: api errors (@test-flexible.R#106)  ──────────────────────────────
  `discrim_flexible() %>% set_engine("monday")` threw an error with unexpected message.
  Expected match: "engine 'monday' is not availble"
  Actual message: "Engine 'monday' is not available. Please use one of: 'earth'"
  Backtrace:
    1. testthat::expect_error(...)
    2. discrim::discrim_flexible()
   10. parsnip::set_engine(., "monday")
   15. parsnip:::check_engine(object)
  
  ── 2. Failure: api errors (@test-linear-fda.R#107)  ────────────────────────────
  `discrim_linear() %>% set_engine("monday")` threw an error with unexpected message.
  Expected match: "engine 'monday' is not availble"
  Actual message: "Engine 'monday' is not available. Please use one of: 'MASS', 'mda'"
  Backtrace:
    1. testthat::expect_error(...)
    2. discrim::discrim_linear()
   10. parsnip::set_engine(., "monday")
   15. parsnip:::check_engine(object)
  
  ── 3. Failure: api errors (@test-linear-lda.R#132)  ────────────────────────────
  `discrim_linear() %>% set_engine("lda")` threw an error with unexpected message.
  Expected match: "engine 'lda' is not availble"
  Actual message: "Engine 'lda' is not available. Please use one of: 'MASS', 'mda'"
  Backtrace:
    1. testthat::expect_error(...)
    2. discrim::discrim_linear()
   10. parsnip::set_engine(., "lda")
   15. parsnip:::check_engine(object)
  
  ── 4. Failure: api errors (@test-naive-Bayes.R#195)  ───────────────────────────
  `naive_Bayes() %>% set_engine("lda")` threw an error with unexpected message.
  Expected match: "engine 'lda' is not availble"
  Actual message: "Engine 'lda' is not available. Please use one of: 'klaR'"
  Backtrace:
    1. testthat::expect_error(naive_Bayes() %>% set_engine("lda"), "engine 'lda' is not availble")
    2. discrim::naive_Bayes()
   10. parsnip::set_engine(., "lda")
   15. parsnip:::check_engine(object)
  
  ── 5. Failure: api errors (@test-rda.R#108)  ───────────────────────────────────
  `discrim_regularized() %>% set_engine("monday")` threw an error with unexpected message.
  Expected match: "engine 'monday' is not availble"
  Actual message: "Engine 'monday' is not available. Please use one of: 'klaR'"
  Backtrace:
    1. testthat::expect_error(...)
    2. discrim::discrim_regularized()
   10. parsnip::set_engine(., "monday")
   15. parsnip:::check_engine(object)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 411 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 5 ]
  1. Failure: api errors (@test-flexible.R#106) 
  2. Failure: api errors (@test-linear-fda.R#107) 
  3. Failure: api errors (@test-linear-lda.R#132) 
  4. Failure: api errors (@test-naive-Bayes.R#195) 
  5. Failure: api errors (@test-rda.R#108) 
  
  Error: testthat unit tests failed
  Execution halted