Running ‘test-all.R’ [8s/10s]
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: Classes for Relational Data
  Version 1.16.1 created on 2020-10-06.
  copyright (c) 2005, Carter T. Butts, University of California-Irvine
                      Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Martina Morris, University of Washington
                      Skye Bender-deMoll, University of Washington
   For citation information, type citation("network").
   Type help("network-package") to get started.
  
  
  networkDynamic: version 0.10.1, created on 2020-01-16
  Copyright (c) 2020, Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Pavel N. Krivitsky, University of Wollongong
                      Skye Bender-deMoll, University of Washington
                      with contributions from
                      Zack Almquist, University of California -- Irvine
                      David R. Hunter, Penn State University
                      Li Wang
                      Kirk Li, University of Washington
                      Steven M. Goodreau, University of Washington
                      Jeffrey Horner
                      Martina Morris, University of Washington
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("networkDynamic").
  
  Loading required package: tergm
  Loading required package: ergm
  
  ergm: version 3.11.0, created on 2020-10-14
  Copyright (c) 2020, Mark S. Handcock, University of California -- Los Angeles
                      David R. Hunter, Penn State University
                      Carter T. Butts, University of California -- Irvine
                      Steven M. Goodreau, University of Washington
                      Pavel N. Krivitsky, UNSW Sydney
                      Martina Morris, University of Washington
                      with contributions from
                      Li Wang
                      Kirk Li, University of Washington
                      Skye Bender-deMoll, University of Washington
                      Chad Klumb
                      Michał Bojanowski, Kozminski University
                      Ben Bolker
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("ergm").
  
  NOTE: Versions before 3.6.1 had a bug in the implementation of the bd()
  constraint which distorted the sampled distribution somewhat. In
  addition, Sampson's Monks datasets had mislabeled vertices. See the
  NEWS and the documentation for more details.
  
  NOTE: Some common term arguments pertaining to vertex attribute and
  level selection have changed in 3.10.0. See terms help for more
  details. Use 'options(ergm.term=list(version="3.9.4"))' to use old
  behavior.
  
  
  tergm: version 3.7.0, created on 2020-10-15
  Copyright (c) 2020, Pavel N. Krivitsky, UNSW Sydney
                      Mark S. Handcock, University of California -- Los Angeles
                      with contributions from
                      David R. Hunter, Penn State University
                      Steven M. Goodreau, University of Washington
                      Martina Morris, University of Washington
                      Nicole Bohme Carnegie, New York University
                      Carter T. Butts, University of California -- Irvine
                      Ayn Leslie-Cook, University of Washington
                      Skye Bender-deMoll
                      Li Wang
                      Kirk Li, University of Washington
                      Chad Klumb
  Based on "statnet" project software (statnet.org).
  For license and citation information see statnet.org/attribution
  or type citation("tergm").
  
  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.
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (78)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-attr-copy.R:8:3): Copying attributes from network to attribute list ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(num1 + num2) test-attr-copy.R:8:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-get.R:6:1): (code run outside of `test_that()`) ─────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-get.R:6:0
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-merge.R:61:3): merge for netsim ─────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-merge.R:61:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-merge.R:80:3): merge for netsim ─────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-merge.R:80:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-merge.R:101:3): merge works for open sims saving nw stats ───────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-merge.R:101:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-mutate.R:4:3): mutate_epi.netsim ────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-mutate.R:4:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-long.R:734:3): status.vector and infTime.vector ─────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = n) test-net-long.R:734:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-tergmLite.R:9:3): tergmLite: 1G, Closed ─────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num) test-net-tergmLite.R:9:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-tergmLite.R:52:3): tergmLite: 2G, Closed ────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num1 + num2) test-net-tergmLite.R:52:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-tergmLite.R:98:3): tergmLite: 1G, Open ──────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num) test-net-tergmLite.R:98:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-tergmLite.R:150:3): tergmLite: 2G, Open ─────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num1 + num2) test-net-tergmLite.R:150:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-net-tergmLite.R:206:3): Models with duration = 1 ────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num) test-net-tergmLite.R:206:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netattr.R:4:3): Updating attributes in open populations ─────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netattr.R:4:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:5:3): Edges only models ─────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = num) test-netdx.R:5:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:64:3): Formation plot color vector length ───────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = n) test-netdx.R:64:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:81:3): Netdx duration and dissolution plots error when
            skip.dissolution = TRUE ──
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netdx.R:81:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:96:3): Offset terms ─────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = n) test-netdx.R:96:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:135:3): Faux offset term ────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = n) test-netdx.R:135:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:173:3): Static diagnostic simulations ───────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netdx.R:173:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:212:3): error checking ──────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 25) test-netdx.R:212:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netdx.R:221:3): Cross sectional ergm dynamic error check ────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netdx.R:221:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:7:3): netest works for edges only model ────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netest.R:7:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:16:3): netest works for edges + nodematch model ────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netest.R:16:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:27:3): netest works with offset.coef terms ─────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netest.R:27:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:42:3): netest works for heterogeneous dissolutions ─────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netest.R:42:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:55:3): netest diss_check flags bad models ──────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netest.R:55:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:77:3): Error if incorrect coef.diss parameter ──────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netest.R:77:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netest.R:85:3): update_dissolution tests ────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 1000) test-netest.R:85:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netoffset.R:4:3): netsim works with standard offset models ──────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netoffset.R:4:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netoffset.R:22:3): netsim works with faux offset models ─────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netoffset.R:22:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netsim.R:3:1): (code run outside of `test_that()`) ──────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 50) test-netsim.R:3:0
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netvary.R:4:3): time varying parameters for one-mode ────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netvary.R:4:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-netvary.R:32:3): time varying parameters for two-group models ───
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-netvary.R:32:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-newmodules.R:73:3): New network models vignette example ─────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network.initialize(50, directed = FALSE) test-newmodules.R:73:2
   2.   └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-print.R:30:3): print.netest ─────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-print.R:30:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-print.R:44:3): print.netsim ─────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-print.R:44:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-transmat-dendo.R:5:1): (code run outside of `test_that()`) ──────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-transmat-dendo.R:5:0
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-utils.R:30:3): color_tea ────────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-utils.R:30:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-utils.R:113:3): get_degree ──────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 500) test-utils.R:113:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-utils.R:159:3): get_formula_term_attr checks ────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─tergmLite::network_initialize(n = 100) test-utils.R:159:2
   2.   └─network::network.initialize(...)
   3.     └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 40 | WARN 0 | SKIP 78 | PASS 206 ]
  Error: Test failures
  Execution halted