Running ‘testthat.R’ [132s/146s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dynwrap)
  > 
  > test_check("dynwrap")
  ── 1. Error: (unknown) (@test-method_infer_trajectory.R#3)  ────────────────────
  there is no package called 'dyndimred'
  Backtrace:
    1. base::source(...)
   27. dyndimred::list_dimred_methods
   28. base::getExportedValue(pkg, name)
   29. base::asNamespace(ns)
   30. base::getNamespace(ns)
   31. base::loadNamespace(name)
   32. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   33. base:::withOneRestart(expr, restarts[[1L]])
   34. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: Testing add_dimred including calculation of dimred (@test-wrap_add_
  there is no package called 'dyndimred'
  Backtrace:
    9. dynwrap::add_dimred(., dimred = dyndimred::dimred_pca)
   11. base::getExportedValue(pkg, name)
   12. base::asNamespace(ns)
   13. base::getNamespace(ns)
   14. base::loadNamespace(name)
   15. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16. base:::withOneRestart(expr, restarts[[1L]])
   17. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: Test get_dimred (@test-wrap_add_dimred.R#278)  ────────────────────
  there is no package called 'dyndimred'
  Backtrace:
   1. dynwrap::get_dimred(wr_withdimred, dimred = dyndimred::dimred_pca)
   2. dyndimred::dimred_pca
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 918 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 3 ]
  1. Error: (unknown) (@test-method_infer_trajectory.R#3) 
  2. Error: Testing add_dimred including calculation of dimred (@test-wrap_add_dimred.R#110) 
  3. Error: Test get_dimred (@test-wrap_add_dimred.R#278) 
  
  Error: testthat unit tests failed
  Execution halted