Running 'testthat.R' [88s]
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(name)`: there is no package called 'nnet'
  Backtrace:
       x
    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.                   \-nnet::multinom
   13.                     \-base::getExportedValue(pkg, name)
   14.                       \-base::asNamespace(ns)
   15.                         \-base::getNamespace(ns)
   16.                           \-base::loadNamespace(name)
   17.                             \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   18.                               \-base:::withOneRestart(expr, restarts[[1L]])
   19.                                 \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_missingness.R:37:3): replaced values don't show -----------------
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'nnet'
  Backtrace:
       x
    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.                   \-nnet::multinom
   13.                     \-base::getExportedValue(pkg, name)
   14.                       \-base::asNamespace(ns)
   15.                         \-base::getNamespace(ns)
   16.                           \-base::loadNamespace(name)
   17.                             \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   18.                               \-base:::withOneRestart(expr, restarts[[1L]])
   19.                                 \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_missingness.R:105:3): missing option 3 works --------------------
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'nnet'
  Backtrace:
       x
    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.                   \-nnet::multinom
   13.                     \-base::getExportedValue(pkg, name)
   14.                       \-base::asNamespace(ns)
   15.                         \-base::getNamespace(ns)
   16.                           \-base::loadNamespace(name)
   17.                             \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   18.                               \-base:::withOneRestart(expr, restarts[[1L]])
   19.                                 \-base:::doWithOneRestart(return(expr), restart)
  -- Error (test_one_covariate.R:55:3): runs with 'impute' missingness -----------
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'nnet'
  Backtrace:
       x
    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.                   \-nnet::multinom
   13.                     \-base::getExportedValue(pkg, name)
   14.                       \-base::asNamespace(ns)
   15.                         \-base::getNamespace(ns)
   16.                           \-base::loadNamespace(name)
   17.                             \-base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   18.                               \-base:::withOneRestart(expr, restarts[[1L]])
   19.                                 \-base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 5 | SKIP 0 | PASS 4508 ]
  Error: Test failures
  Execution halted