Running ‘testthat.R’ [218s/209s]
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
  ── 1. Error: Single, discrete (@testTransmissionTree.R#47)  ────────────────────
  Assigned data `c(...)` must be compatible with existing data.
  ℹ 1.
  Backtrace:
   1. nosoi::getTransmissionTree(test.nosoiA)
   3. tibble:::`[<-.tbl_df`(...)
   4. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5. tibble:::tbl_subassign_row(x, i, value, value_arg)
   6. base::tryCatch(...)
   7. base:::tryCatchList(expr, classes, parentenv, handlers)
   8. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9. value[[3L]](cond)
  
  ── 2. Error: Single, continuous (@testTransmissionTree.R#186)  ─────────────────
  Assigned data `c(...)` must be compatible with existing data.
  ℹ 1.
  Backtrace:
   1. nosoi::getTransmissionTree(test.nosoiA)
   3. tibble:::`[<-.tbl_df`(...)
   4. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5. tibble:::tbl_subassign_row(x, i, value, value_arg)
   6. base::tryCatch(...)
   7. base:::tryCatchList(expr, classes, parentenv, handlers)
   8. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9. value[[3L]](cond)
  
  ── 3. Error: Dual, discrete (@testTransmissionTree.R#327)  ─────────────────────
  Assigned data `c(...)` must be compatible with existing data.
  ℹ 1.
  Backtrace:
   1. nosoi::getTransmissionTree(test.nosoiA)
   3. tibble:::`[<-.tbl_df`(...)
   4. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5. tibble:::tbl_subassign_row(x, i, value, value_arg)
   6. base::tryCatch(...)
   7. base:::tryCatchList(expr, classes, parentenv, handlers)
   8. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9. value[[3L]](cond)
  
  ── 4. Error: Dual, continuous (@testTransmissionTree.R#495)  ───────────────────
  Assigned data `c(...)` must be compatible with existing data.
  ℹ 1.
  Backtrace:
   1. nosoi::getTransmissionTree(test.nosoiA)
   3. tibble:::`[<-.tbl_df`(...)
   4. tibble:::tbl_subassign(x, i, j, value, i_arg, j_arg, substitute(value))
   5. tibble:::tbl_subassign_row(x, i, value, value_arg)
   6. base::tryCatch(...)
   7. base:::tryCatchList(expr, classes, parentenv, handlers)
   8. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9. value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 390 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: Single, discrete (@testTransmissionTree.R#47) 
  2. Error: Single, continuous (@testTransmissionTree.R#186) 
  3. Error: Dual, discrete (@testTransmissionTree.R#327) 
  4. Error: Dual, continuous (@testTransmissionTree.R#495) 
  
  Error: testthat unit tests failed
  Execution halted