Running ‘testthat.R’ [124s/148s]
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")
  
  Generating Particles for iteration	 1 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 2 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 3 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 4 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 5 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 6 
  0--------25--------50--------75--------100
  *****************************************
  Generating Particles for iteration	 7 
  0--------25--------50--------75--------100
  *── 1. Error: nltts_plot: check data types (@test_get_average_nltt.R#31)  ───────
  there is no package called 'TreeSim'
  1: TreeSim::sim.bd.age at testthat/test_get_average_nltt.R:31
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  ── 2. Error: get_average_nltt_matrix: data types (@test_get_average_nltt_matrix.
  there is no package called 'TreeSim'
  1: TreeSim::sim.bd.age at testthat/test_get_average_nltt_matrix.R:138
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: tryCatch(loadNamespace(name), error = function(e) stop(e))
  6: tryCatchList(expr, classes, parentenv, handlers)
  7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  8: value[[3L]](cond)
  
  
  Generating Chain
  0--------25--------50--------75--------100
  *********************************************
  Finished MCMC.
  
  Generating Chain
  0--------25--------50--------75--------100
  *********************************************
  Finished MCMC.
  
  Generating Chain
  0--------25--------50--------75--------100
  *********************************************
  Finished MCMC.
  
  Generating Chain
  0--------25--------50--------75--------100
  *══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 94 SKIPPED: 1 FAILED: 2
  1. Error: nltts_plot: check data types (@test_get_average_nltt.R#31) 
  2. Error: get_average_nltt_matrix: data types (@test_get_average_nltt_matrix.R#138) 
  
  Error: testthat unit tests failed
  Execution halted