Running ‘test-all.R’ [62s/91s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("EpiModel")
  Loading required package: EpiModel
  Loading required package: deSolve
  Loading required package: networkDynamic
  Loading required package: network
  
  'network' 1.17.1 (2021-06-12), part of the Statnet Project
  * 'news(package="network")' for changes since last version
  * 'citation("network")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  
  'networkDynamic' 0.11.0 (2021-06-12), part of the Statnet Project
  * 'news(package="networkDynamic")' for changes since last version
  * 'citation("networkDynamic")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  Loading required package: tergm
  Loading required package: ergm
  
  'ergm' 4.0.1 (2021-06-20), part of the Statnet Project
  * 'news(package="ergm")' for changes since last version
  * 'citation("ergm")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  'ergm' 4 is a major update that introduces some backwards-incompatible
  changes. Please type 'news(package="ergm")' for a list of major
  changes.
  
  
  'tergm' 4.0.1 (2021-06-24), part of the Statnet Project
  * 'news(package="tergm")' for changes since last version
  * 'citation("tergm")' for citation information
  * 'https://statnet.org' for help, support, and other information
  
  
  Attaching package: 'tergm'
  
  The following object is masked from 'package:ergm':
  
      snctrl
  
  Loading required package: tergmLite
  EpiModel NOTE: EpiModel 2.0 implements significant changes to the
  EpiModel application programming interface (API), which may require
  updates to model code written under EpiModel 1.x. See
  https://epimodel.org/ for migration guidance.
  
  
  Starting Network Simulation...
  Sim = 1/5
  Sim = 2/5
  Sim = 3/5
  Sim = 4/5
  Sim = 5/5
  Starting Network Simulation...
  Sim = 1/5
  Sim = 2/5
  Sim = 3/5
  Sim = 4/5
  Sim = 5/5
  Starting Network Simulation...
  Starting Network Simulation...
  Starting Network Simulation...
  Starting Network Simulation...
  Starting Network Simulation...
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 2/5
  Prevalence: 12
  Population Size: 1000
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 3/5
  Prevalence: 16
  Population Size: 1000
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 4/5
  Prevalence: 22
  Population Size: 1000
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 5/5
  Prevalence: 29
  Population Size: 1000
  ----------------------------
  Starting Network Simulation...EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 1
  Time Steps per Sim: 10
  
  Formation Diagnostics
  ----------------------- 
        Target Sim Mean Pct Diff Sim SD
  edges     15     15.9        6     NA
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration   20.00   20.442    2.210     NA
  Pct Edges Diss   0.05    0.063   26.439     NA
  EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 10
  
  Formation Diagnostics
  ----------------------- 
        Target Sim Mean Pct Diff Sim SD
  edges     15    15.65    4.333  0.778
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration   20.00   19.844   -0.781  0.595
  Pct Edges Diss   0.05    0.040  -19.755  0.014
  EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 10
  
  Formation Diagnostics
  ----------------------- 
             Target Sim Mean Pct Diff Sim SD
  edges          15    16.75   11.667  0.212
  concurrent     NA     7.90       NA  0.566
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration   20.00   19.773   -1.135  0.244
  Pct Edges Diss   0.05    0.042  -15.104  0.042
  EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 10
  
  Formation Diagnostics
  ----------------------- 
          Target Sim Mean Pct Diff Sim SD
  meandeg     NA    0.644       NA  0.277
  edges       15       NA       NA     NA
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration   20.00   19.990   -0.051  0.380
  Pct Edges Diss   0.05    0.037  -25.046  0.008
  
  Network Diagnostics
  -----------------------
  - Simulating 2 networks
    |**|
  - Calculating formation statistics
  - Calculating duration statistics
    |**|
  - Calculating dissolution statistics
    |**|
   
  Network Diagnostics
  -----------------------
  - Simulating 1 network
  - Calculating formation statisticsEpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 50
  
  Formation Diagnostics
  ----------------------- 
                      Target Sim Mean Pct Diff Sim SD
  edges                   15     11.8  -21.333  3.649
  offset(mix.loc.0.1)     NA      0.0       NA  0.000
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration  40.000   40.426    1.066  1.792
  Pct Edges Diss  0.025    0.029   14.790  0.004
  EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 50
  
  Formation Diagnostics
  ----------------------- 
                Target Sim Mean Pct Diff Sim SD
  edges             15   20.190     34.6  3.154
  meandeg           NA    0.808       NA  0.126
  concurrent        NA   10.040       NA  2.234
  nodematch.loc     NA   20.190       NA  3.154
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration  40.000   42.043    5.108  0.471
  Pct Edges Diss  0.025    0.022  -11.470  0.002
  EpiModel Network Diagnostics
  =======================
  Diagnostic Method: Dynamic
  Simulations: 2
  Time Steps per Sim: 50
  
  Formation Diagnostics
  ----------------------- 
              Target Sim Mean Pct Diff Sim SD
  edges           15    15.75        5  2.616
  mix.loc.0.1      0     0.00      NaN  0.000
  
  Dissolution Diagnostics
  ----------------------- 
                 Target Sim Mean Pct Diff Sim SD
  Edge Duration  40.000   38.891   -2.771  0.902
  Pct Edges Diss  0.025    0.024   -3.316  0.002
  
  Network Diagnostics
  -----------------------
  - Simulating 250 networks
  - Calculating formation statistics
  Network Diagnostics
  -----------------------
  - Simulating 2 networks
    |
  Network Diagnostics
  -----------------------
  - Simulating 2 networks
    |**|
  - Calculating formation statistics
  - Calculating duration statistics
    |**|
  - Calculating dissolution statistics
    |**|
   
  Network Diagnostics
  -----------------------
  - Simulating 2 networks
    |
  Network Diagnostics
  -----------------------
  - Simulating 2 networks
    |**|
  - Calculating formation statistics
  - Calculating duration statistics
    |**|
  - Calculating dissolution statistics
    |**|
   
  Starting Network Simulation...
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 2/5
  Prevalence: 12
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 3/5
  Prevalence: 13
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 4/5
  Prevalence: 14
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 5/5
  Prevalence: 14
  Population Size: 50
  ----------------------------
  Starting Network Simulation...
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 2/10
  Prevalence: 10
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 3/10
  Prevalence: 10
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 4/10
  Prevalence: 10
  Population Size: 50
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 5/10
  Prevalence: 10
  Population Size: 49
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 6/10
  Prevalence: 10
  Population Size: 49
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 7/10
  Prevalence: 11
  Population Size: 48
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 8/10
  Prevalence: 12
  Population Size: 48
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 9/10
  Prevalence: 12
  Population Size: 48
  ----------------------------
  Epidemic Simulation
  ----------------------------
  Simulation: 1/1
  Timestep: 10/10
  Prevalence: 12
  Population Size: 48
  ----------------------------
  Starting Network Simulation...
  Sim = 1/1
  1/10	
  2/10	
  3/10	
  4/10	
  5/10	
  6/10	
  7/10	
  8/10	
  9/10	
  10/10	══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (82)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-net-tergmLite.R:20:3): tergmLite: 1G, Closed ────────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-net-tergmLite.R:20:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(...)
   7.         └─(function (x, param, init, control, s) ...
   8.           └─tergmLite::init_tergmLite(dat)
  ── Error (test-net-tergmLite.R:65:3): tergmLite: 2G, Closed ────────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-net-tergmLite.R:65:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(...)
   7.         └─(function (x, param, init, control, s) ...
   8.           └─tergmLite::init_tergmLite(dat)
  ── Error (test-net-tergmLite.R:113:3): tergmLite: 1G, Open ─────────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-net-tergmLite.R:113:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(...)
   7.         └─(function (x, param, init, control, s) ...
   8.           └─tergmLite::init_tergmLite(dat)
  ── Error (test-net-tergmLite.R:167:3): tergmLite: 2G, Open ─────────────────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-net-tergmLite.R:167:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(...)
   7.         └─(function (x, param, init, control, s) ...
   8.           └─tergmLite::init_tergmLite(dat)
  ── Error (test-net-tergmLite.R:221:3): Models with duration = 1 ────────────────
  Error: unused arguments (p = dat$p[[1]], el = dat$el[[1]])
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-net-tergmLite.R:221:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(control[[current_mod]], list(dat, at))
   7.         └─(function (dat, at) ...
  ── Error (test-newmodules.R:118:3): New network models vignette example ────────
  Error: argument is of length zero
  Backtrace:
      █
   1. └─EpiModel::netsim(est, param, init, control) test-newmodules.R:118:2
   2.   └─base::lapply(...)
   3.     └─EpiModel:::FUN(X[[i]], ...)
   4.       └─EpiModel:::netsim_loop(x, param, init, control, s)
   5.         ├─base::withCallingHandlers(...)
   6.         ├─base::do.call(...)
   7.         └─(function (x, param, init, control, s) ...
   8.           └─tergmLite::init_tergmLite(dat)
  
  [ FAIL 6 | WARN 3 | SKIP 82 | PASS 379 ]
  Error: Test failures
  Execution halted