Running 'testthat.R' [4s/6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(tergmLite)
  > 
  > test_check("tergmLite")
  == Failed tests ================================================================
  -- Error (test-examples.R:11:5): simulate_network ------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:11:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:53:5): simulate_ergm ---------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:53:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:86:5): init_tergmLite --------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:86:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:119:5): networkLite ----------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:119:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:148:5): updateModelTermInputs ------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:148:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:189:5): add_vertices ---------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:189:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-examples.R:221:5): delete_vertices ------------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-examples.R:221:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:8:5): concurrent ------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:8:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:35:5): concurrent_by --------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:35:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:63:5): degree, single -------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:63:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:90:5): degree, multiple -----------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:90:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:117:5): degree_by_attr ------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:117:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:145:5): degrange ------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:145:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:193:5): nodecov formula -----------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:193:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:222:5): nodecov function ----------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:222:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:251:5): nodefactor single ---------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:251:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:281:5): nodefactor interaction ----------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:281:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:312:5): nodemix levels ------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(200) test-updateModelTermInputs.R:312:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:341:5): triangle ------------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:341:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:368:5): triangle_attr -------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:368:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:396:5): triangle_attrdiff ---------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:396:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:424:5): triangle_attrdifflevels ---------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:424:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:453:5): gwesp_true ----------------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:453:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  -- Error (test-updateModelTermInputs.R:480:5): gwesp_truedecay -----------------
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      x
   1. \-tergmLite::network_initialize(100) test-updateModelTermInputs.R:480:4
   2.   \-network::network.initialize(...)
   3.     \-network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 24 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted