Running ‘testthat.R’ [3s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nLTT) # nolint keep package name non-all-lowercase, due to backwards compatibility
  > 
  > test_check("nLTT")
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 165 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (3)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-abc_smc_nltt.R:99:3): abc_smc_nltt abuse ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TreeSim'
  Backtrace:
      ▆
   1. ├─nLTT treesim(c(1, 0)) at test-abc_smc_nltt.R:99:2
   2. └─base::loadNamespace(x) at test-abc_smc_nltt.R:63:4
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-get_average_nltt.R:43:3): nltts_plot: check data types ──────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TreeSim'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-get_average_nltt.R:43:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-get_average_nltt_matrix.R:147:3): data types ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TreeSim'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-get_average_nltt_matrix.R:147:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-mcmc_nltt.R:59:3): mcmc_nltt abuse ──────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TESS'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-mcmc_nltt.R:59:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 165 ]
  Error: Test failures
  Execution halted