Running ‘testthat.R’ [40s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FLAME)
  > 
  > test_check("FLAME")
  Saving _problems/test_factors-82.R
  Saving _problems/test_missingness-38.R
  Saving _problems/test_missingness-107.R
  Saving _problems/test_one_covariate-56.R
  [ FAIL 4 | WARN 5 | SKIP 2 | PASS 4520 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • empty test (2): ,
  
  ══ 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:3
   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:3
   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:3
   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:3
   2.   ├─base::do.call(...)
   3.   └─FLAME (local) `<fn>`(...)
   4.     └─FLAME:::preprocess(...)
   5.       └─FLAME:::check_args(...)
  
  [ FAIL 4 | WARN 5 | SKIP 2 | PASS 4520 ]
  Error:
  ! Test failures.
  Execution halted