Running ‘testthat.R’ [80s/95s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  + 
  +   library(testthat)
  +   library(nosoi)
  + 
  +   test_check("nosoi")
  + 
  + }
  Loading required package: data.table
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  Saving _problems/testTransmissionTree-47.R
  Saving _problems/testTransmissionTree-204.R
  Saving _problems/testTransmissionTree-370.R
  Saving _problems/testTransmissionTree-557.R
  Saving _problems/testTransmissionTree-738.R
  Saving _problems/testTransmissionTree-819.R
  Saving _problems/testTransmissionTree-973.R
  [ FAIL 7 | WARN 2 | SKIP 0 | PASS 477 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('testTransmissionTree.R:47:3'): Single, discrete ─────────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 11/11 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(test.nosoiA) at testTransmissionTree.R:47:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:204:3'): Single, continuous ──────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 15/15 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(test.nosoiA) at testTransmissionTree.R:204:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:370:3'): Dual, discrete ──────────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 12/12 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(test.nosoiA) at testTransmissionTree.R:370:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:557:3'): Dual, continuous ────────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 16/16 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(test.nosoiA) at testTransmissionTree.R:557:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:738:3'): Single, discrete, Sink ──────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 12/12 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(SimulationSingle) at testTransmissionTree.R:738:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:819:3'): Single, none ────────────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 8/8 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(SimulationSingle) at testTransmissionTree.R:819:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('testTransmissionTree.R:973:3'): Dual, none ──────────────────────────
  Error in ``[.data.table`(table.hosts, , `:=`("indNodes", .GRP), by = c("inf.by", "inf.time"))`: attempt access index 9/9 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─nosoi::getTransmissionTree(SimulationDual) at testTransmissionTree.R:973:3
   2.   ├─table.hosts[, `:=`("indNodes", .GRP), by = c("inf.by", "inf.time")]
   3.   └─data.table:::`[.data.table`(...)
  
  [ FAIL 7 | WARN 2 | SKIP 0 | PASS 477 ]
  Error:
  ! Test failures.
  Execution halted