Running ‘testthat.R’ [89s/102s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > 
  > #------------------------------------------------------------------------------#
  > # OPTIC R Package Code Repository
  > # Copyright (C) 2023 by The RAND Corporation
  > # See README.md for information on usage and licensing
  > #------------------------------------------------------------------------------#
  > 
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(optic)
  > 
  > test_check("optic")
  Number of Simulations: 24
  Number of Models: 2
  Iteration per Simulation : 2
  Total number of Iterations to Run: 96
  JOB 1 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  
  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
  
  JOB 2 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 3 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 4 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 5 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 6 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 7 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 8 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0
              years_apart: 2
              ordered: TRUE
  JOB 9 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 10 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 11 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 12 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 13 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 14 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 15 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 16 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.5
              years_apart: 2
              ordered: TRUE
  JOB 17 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 18 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 19 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 20 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 21 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 22 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 23 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.455092540172079
              effect_magnitude2: 0.455092540172079
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  JOB 24 OF 24 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude1: 0.22754627008604
              effect_magnitude2: 0.682638810258119
              n_units: 10
              effect_direction: pos
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              rhos: 0.9
              years_apart: 2
              ordered: TRUE
  Number of Simulations: 12
  Number of Models: 2
  Iteration per Simulation : 5
  Total number of Iterations to Run: 120
  JOB 1 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: trend
              treat_var: state
              conf_var: unemploymentrate
              bias_size: small
              bias_type: linear
  
  Attaching package: 'MASS'
  
  The following object is masked from 'package:dplyr':
  
      select
  
  JOB 2 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: level
              treat_var: state
              conf_var: unemploymentrate
              bias_size: small
              bias_type: linear
  JOB 3 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: trend
              treat_var: state
              conf_var: unemploymentrate
              bias_size: medium
              bias_type: linear
  JOB 4 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: level
              treat_var: state
              conf_var: unemploymentrate
              bias_size: medium
              bias_type: linear
  JOB 5 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: trend
              treat_var: state
              conf_var: unemploymentrate
              bias_size: large
              bias_type: linear
  JOB 6 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: level
              treat_var: state
              conf_var: unemploymentrate
              bias_size: large
              bias_type: linear
  JOB 7 OF 12 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: null
              policy_speed: instant
              n_implementation_periods: 0
              prior_control: trend
              treat_var: state
              conf_var: unemploymentrate
              bias_size: small
              bias_type: nonlinear
                                                                                                 i 
  "In argument: `state = (function (x = character(), levels, labels = levels, exclude = NA, ...`." 
  Number of Simulations: 8
  Number of Models: 3
  Iteration per Simulation : 5
  Total number of Iterations to Run: 120
  JOB 1 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              treat_var: state
  JOB 2 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 3.97146241830065
              n_units: 5
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 3
              prior_control: level
              treat_var: state
  JOB 3 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              treat_var: state
  JOB 4 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 3.97146241830065
              n_units: 5
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 3
              prior_control: level
              treat_var: state
  JOB 5 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 10
              prior_control: level
              treat_var: state
  JOB 6 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 3.97146241830065
              n_units: 5
              effect_direction: neg
              policy_speed: instant
              n_implementation_periods: 10
              prior_control: level
              treat_var: state
  JOB 7 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 0
              n_units: 5
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 10
              prior_control: level
              treat_var: state
  JOB 8 OF 8 DISPATCHED:
          DISPATCH METHOD: parallel (future)
          PARAMS:
              unit_var: state
              time_var: year
              effect_magnitude: 3.97146241830065
              n_units: 5
              effect_direction: neg
              policy_speed: slow
              n_implementation_periods: 10
              prior_control: level
              treat_var: state
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 3 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-confounding.R:108:1'): (code run outside of `test_that()`) ─────
  Error in `...future.FUN(...future.X_jj, ...)`: Error in simulate.sim_config. Results are not data.frames. Error: 
  In argument: `state = (function (x = character(), levels, labels = levels, exclude = NA, ...`.
  Backtrace:
      ▆
   1. └─optic::dispatch_simulations(...) at test-confounding.R:108:0
   2.   └─future.apply::future_lapply(...)
   3.     └─future.apply:::future_xapply(...)
   4.       ├─future::value(fs)
   5.       └─future:::value.list(fs)
   6.         ├─future::resolve(...)
   7.         └─future:::resolve.list(...)
   8.           └─future (local) signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   9.             └─future:::signalConditions(...)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 3 ]
  Error: Test failures
  Execution halted