Running ‘tests.R’ [8s/13s]
Running the tests in ‘tests/tests.R’ failed.
Complete output:
  > 
  > 
  > library(testthat)
  > library(lolog)
  Loading required package: Rcpp
  > 
  > test_check("lolog")
  
   Model is dyad independent. Replications are redundant. Setting nReplicates <- 1L.
  
   Model is dyad independent. Replications are redundant. Setting nReplicates <- 1L.
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-BinaryNet.R:26:3): DirectedNet ──────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. ├─lolog::as.network(net) test-BinaryNet.R:26:2
   2. └─lolog::as.network.Rcpp_DirectedNet(net)
   3.   └─network::network(el, directed = TRUE)
   4.     ├─network::as.network(...)
   5.     └─network::as.network.matrix(...)
   6.       └─network::network.initialize(...)
   7.         └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-BinaryNet.R:84:3): UndirectedNet ────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(flo, directed = FALSE) test-BinaryNet.R:84:2
   2.   ├─network::as.network(...)
   3.   └─network::as.network.matrix(...)
   4.     └─network::network.initialize(...)
   5.       └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-BinaryNet.R:151:3): igraph Conversions ──────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. ├─lolog::as.BinaryNet(g) test-BinaryNet.R:151:2
   2. └─lolog::as.BinaryNet.default(g)
   3.   ├─intergraph::asNetwork(x, ...)
   4.   └─intergraph:::asNetwork.igraph(x, ...)
   5.     ├─intergraph::asNetwork(...)
   6.     └─intergraph:::asNetwork.data.frame(...)
   7.       └─network::network.initialize(...)
   8.         └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-lolog-fit.R:39:3): lolog_fit ────────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(flo, directed = FALSE) test-lolog-fit.R:39:2
   2.   ├─network::as.network(...)
   3.   └─network::as.network.matrix(...)
   4.     └─network::network.initialize(...)
   5.       └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-lolog-fit.R:69:3): lolog_fit_parallel ───────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(flo, directed = FALSE) test-lolog-fit.R:69:2
   2.   ├─network::as.network(...)
   3.   └─network::as.network.matrix(...)
   4.     └─network::network.initialize(...)
   5.       └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  ── Error (test-model-creation.R:30:3): terms ───────────────────────────────────
  Error: attempt to set index 0/0 in SET_VECTOR_ELT
  Backtrace:
      █
   1. └─network::network(flo, directed = FALSE) test-model-creation.R:30:2
   2.   ├─network::as.network(...)
   3.   └─network::as.network.matrix(...)
   4.     └─network::network.initialize(...)
   5.       └─network::set.vertex.attribute(g, "na", rep(FALSE, n), 1:n)
  
  [ FAIL 6 | WARN 0 | SKIP 1 | PASS 23 ]
  Error: Test failures
  In addition: Warning messages:
  1: In tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),  :
    closing unused connection 6 (<-localhost:11092)
  2: In tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),  :
    closing unused connection 5 (<-localhost:11092)
  Execution halted