Running ‘testthat.R’ [245s/279s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(eRTG3D)
  > 
  > test_check("eRTG3D")
  ── 1. Error: reproduce.track.3d works  ─────────────────────────────────────────
  error writing to connection
  Backtrace:
    1. eRTG3D::reproduce.track.3d(...)
    4. eRTG3D::n.sim.cond.3d(...)
    5. eRTG3D::parpblapply(...)
    6. eRTG3D:::.clpbapply(...)
    7. pbapply:::applyFun(cl = cl, X = X, FUN = FUN)
    8. parallel:::PAR_FUN(cl, X[Split[[i]]], FUN, ...)
   10. parallel::clusterApply(...)
   11. parallel:::staticClusterApply(cl, fun, length(x), argfun)
   12. parallel:::sendCall(cl[[i]], fun, argfun(start + i - 1L))
   13. parallel:::postNode(...)
   15. parallel:::sendData.SOCK0node(...)
   16. base::serialize(data, node$con, xdr = FALSE)
  
  ── 1. Error: reproduce.track.3d works  ─────────────────────────────────────────
  error reading from connection
  Backtrace:
    1. eRTG3D::reproduce.track.3d(...)
    4. eRTG3D::n.sim.cond.3d(...)
    5. eRTG3D::parpblapply(...)
    6. eRTG3D:::.clpbapply(...)
    7. parallel::makeForkCluster(nNodes)
    8. parallel:::newForkNode(..., rank = i)
    9. parallel:::slaveLoop(makeSOCKmaster(master, port, timeout))
   15. parallel:::recvData.SOCK0node(master)
   16. base::unserialize(node$con)
  
  ── 1. Error: reproduce.track.3d works  ─────────────────────────────────────────
  error reading from connection
  Backtrace:
    1. eRTG3D::reproduce.track.3d(...)
    4. eRTG3D::n.sim.cond.3d(...)
    5. eRTG3D::parpblapply(...)
    6. eRTG3D:::.clpbapply(...)
    7. parallel::makeForkCluster(nNodes)
    8. parallel:::newForkNode(..., rank = i)
    9. parallel:::slaveLoop(makeSOCKmaster(master, port, timeout))
   15. parallel:::recvData.SOCK0node(master)
   16. base::unserialize(node$con)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 103 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: reproduce.track.3d works 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In for (i in seq_len(n)) { :
    closing unused connection 6 (<-localhost:11780)
  2: In for (i in seq_len(n)) { :
    closing unused connection 5 (<-localhost:11780)
  Execution halted