Running ‘testthat.R’ [68s/108s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FLAME)
  > 
  > test_check("FLAME")
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 4465 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_factors.R:81:3'): missing data 'impute' doesn't leave new levels ──
  Error: Package `mice` needed to impute missing values. Please install it or select different options for `missing_data`.
  Backtrace:
      ▆
   1. └─FLAME::FLAME(...) at test_factors.R:81:2
   2.   ├─base::do.call(...)
   3.   └─FLAME (local) `<fn>`(...)
   4.     └─FLAME:::preprocess(...)
   5.       └─FLAME:::check_args(...)
  ── Error ('test_missingness.R:37:3'): replaced values don't show ───────────────
  Error: Package `mice` needed to impute missing values. Please install it or select different options for `missing_data`.
  Backtrace:
      ▆
   1. └─FLAME::FLAME(...) at test_missingness.R:37:2
   2.   ├─base::do.call(...)
   3.   └─FLAME (local) `<fn>`(...)
   4.     └─FLAME:::preprocess(...)
   5.       └─FLAME:::check_args(...)
  ── Error ('test_missingness.R:105:3'): missing option 3 works ──────────────────
  Error: Package `mice` needed to impute missing values. Please install it or select different options for `missing_data`.
  Backtrace:
      ▆
   1. └─FLAME::FLAME(...) at test_missingness.R:105:2
   2.   ├─base::do.call(...)
   3.   └─FLAME (local) `<fn>`(...)
   4.     └─FLAME:::preprocess(...)
   5.       └─FLAME:::check_args(...)
  ── Error ('test_one_covariate.R:55:3'): runs with 'impute' missingness ─────────
  Error: Package `mice` needed to impute missing values. Please install it or select different options for `missing_data`.
  Backtrace:
      ▆
   1. └─FLAME::FLAME(df, holdout, missing_data = "impute", missing_holdout = "impute") at test_one_covariate.R:55:2
   2.   ├─base::do.call(...)
   3.   └─FLAME (local) `<fn>`(...)
   4.     └─FLAME:::preprocess(...)
   5.       └─FLAME:::check_args(...)
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 4465 ]
  Error: Test failures
  Execution halted