Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("simITS")
  Loading required package: simITS
  Loading required package: dplyr
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  Loading required package: rlang
  
  Attaching package: 'rlang'
  
  The following objects are masked from 'package:testthat':
  
      is_false, is_null, is_true
  
  [ FAIL 11 | WARN 12 | SKIP 0 | PASS 48 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-ITSModelingCode.R:63:3'): extrapolate_model works ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'plyr'
  Backtrace:
      ▆
   1. ├─simITS::extrapolate_model(...) at test-ITSModelingCode.R:63:3
   2. │ └─simITS::make_many_predictions_plug(...)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-ITSModelingCode.R:96:5'): Warning in exponential blowup works ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'plyr'
  Backtrace:
      ▆
   1. ├─simITS::extrapolate_model(...) at test-ITSModelingCode.R:96:5
   2. │ └─simITS::make_many_predictions_plug(...)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-aggregate_simulation_results.R:10:3'): Aggregation of simulation results works ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-aggregate_simulation_results.R:10:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-aggregate_simulation_results.R:37:3'): Alternate function works for aggregation ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-aggregate_simulation_results.R:37:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-general_tests.R:9:3'): The four types of smooth vs summarize calls work ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-general_tests.R:9:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-general_tests.R:49:3'): Smoothing with post.only=TRUE gives post smoothed only ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-general_tests.R:49:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-make_envelope_graph.R:7:3'): make_envelope_graph works ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-make_envelope_graph.R:7:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-post_stratified_ITS.R:19:3'): vague tests of post_stratified_ITS ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-post_stratified_ITS.R:19:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-post_stratified_ITS.R:57:3'): generate_fake_grouped_data works ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::generate_fake_grouped_data(-10, 0, 10) at test-post_stratified_ITS.R:57:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-process_outcome_model.R:24:3'): process_outcome_model works ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
      ▆
   1. ├─simITS::process_outcome_model(...) at test-process_outcome_model.R:24:3
   2. │ └─simITS::extrapolate_model(...)
   3. │   └─simITS::make_many_predictions(...)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base (local) withOneRestart(expr, restarts[[1L]])
   7.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-process_outcome_model.R:59:3'): process_outcome_model extra covariate drop works ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'arm'
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-process_outcome_model.R:59:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─simITS::process_outcome_model(...)
    7. │ └─simITS::extrapolate_model(...)
    8. │   └─simITS::make_many_predictions(...)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base (local) withOneRestart(expr, restarts[[1L]])
   12.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 11 | WARN 12 | SKIP 0 | PASS 48 ]
  Error: Test failures
  Execution halted