Running ‘testthat.R’ [87s/226s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FLAME)
  > 
  > test_check("FLAME")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_factors.R:81:3): missing data 'impute' doesn't leave new levels ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'nnet'
  Backtrace:
       █
    1. ├─FLAME::FLAME(...) test_factors.R:81:2
    2. │ ├─base::do.call(...)
    3. │ └─(function (algo, data, holdout, C, treated_column_name, outcome_column_name, ...
    4. │   └─FLAME:::preprocess(...)
    5. │     └─FLAME:::handle_missing_data(...)
    6. │       └─FLAME:::impute_missing(...)
    7. │         └─mice::mice(...)
    8. │           └─mice:::sampler(...)
    9. │             └─mice:::sampler.univ(...)
   10. │               ├─base::do.call(f, args = args)
   11. │               └─mice::mice.impute.polyreg(...)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_missingness.R:37:3): replaced values don't show ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'nnet'
  Backtrace:
       █
    1. ├─FLAME::FLAME(...) test_missingness.R:37:2
    2. │ ├─base::do.call(...)
    3. │ └─(function (algo, data, holdout, C, treated_column_name, outcome_column_name, ...
    4. │   └─FLAME:::preprocess(...)
    5. │     └─FLAME:::handle_missing_data(...)
    6. │       └─FLAME:::impute_missing(...)
    7. │         └─mice::mice(...)
    8. │           └─mice:::sampler(...)
    9. │             └─mice:::sampler.univ(...)
   10. │               ├─base::do.call(f, args = args)
   11. │               └─mice::mice.impute.polyreg(...)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_missingness.R:105:3): missing option 3 works ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'nnet'
  Backtrace:
       █
    1. ├─FLAME::FLAME(...) test_missingness.R:105:2
    2. │ ├─base::do.call(...)
    3. │ └─(function (algo, data, holdout, C, treated_column_name, outcome_column_name, ...
    4. │   └─FLAME:::preprocess(...)
    5. │     └─FLAME:::handle_missing_data(...)
    6. │       └─FLAME:::impute_missing(...)
    7. │         └─mice::mice(...)
    8. │           └─mice:::sampler(...)
    9. │             └─mice:::sampler.univ(...)
   10. │               ├─base::do.call(f, args = args)
   11. │               └─mice::mice.impute.polyreg(...)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test_one_covariate.R:55:3): runs with 'impute' missingness ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'nnet'
  Backtrace:
       █
    1. ├─FLAME::FLAME(df, holdout, missing_data = "impute", missing_holdout = "impute") test_one_covariate.R:55:2
    2. │ ├─base::do.call(...)
    3. │ └─(function (algo, data, holdout, C, treated_column_name, outcome_column_name, ...
    4. │   └─FLAME:::preprocess(...)
    5. │     └─FLAME:::handle_missing_data(...)
    6. │       └─FLAME:::impute_missing(...)
    7. │         └─mice::mice(...)
    8. │           └─mice:::sampler(...)
    9. │             └─mice:::sampler.univ(...)
   10. │               ├─base::do.call(f, args = args)
   11. │               └─mice::mice.impute.polyreg(...)
   12. └─base::loadNamespace(x)
   13.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   14.     └─base:::withOneRestart(expr, restarts[[1L]])
   15.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 4611 ]
  Error: Test failures
  Execution halted