Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(medmod)
  > 
  > test_check("medmod")
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (testmed.R:11:5): mediation works ─────────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fastmap'
  Backtrace:
       ▆
    1. ├─medmod::med(data, dep = "Y", pred = "X", med = "M", paths = TRUE) at testmed.R:11:4
    2. │ └─medResults$new(options = options)
    3. │   └─medmod initialize(...)
    4. │     └─jmvcore::Table$new(...)
    5. │       └─jmvcore initialize(...)
    6. │         ├─base::do.call(self$addColumn, column)
    7. │         └─jmvcore `<fn>`(name = "effect", title = "Effect", type = "text")
    8. │           └─Column$new(...)
    9. │             └─jmvcore initialize(...)
   10. │               └─options$translate(title)
   11. │                 └─jmvcore:::createTranslator(private$.package, private$.lang)
   12. │                   └─Translator$new(langDef)
   13. │                     └─jmvcore initialize(...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base withOneRestart(expr, restarts[[1L]])
   17.       └─base doWithOneRestart(return(expr), restart)
  ── Error (testmod.R:12:5): moderation works ────────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fastmap'
  Backtrace:
       ▆
    1. ├─medmod::mod(data, dep = "Y", pred = "X", mod = "M", simpleSlopeEst = TRUE) at testmod.R:12:4
    2. │ └─modResults$new(options = options)
    3. │   └─medmod initialize(...)
    4. │     └─jmvcore::Table$new(...)
    5. │       └─jmvcore initialize(...)
    6. │         ├─base::do.call(self$addColumn, column)
    7. │         └─jmvcore `<fn>`(name = "term", title = "", type = "text")
    8. │           └─Column$new(...)
    9. │             └─jmvcore initialize(...)
   10. │               └─options$translate(title)
   11. │                 └─jmvcore:::createTranslator(private$.package, private$.lang)
   12. │                   └─Translator$new(langDef)
   13. │                     └─jmvcore initialize(...)
   14. └─base::loadNamespace(x)
   15.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   16.     └─base withOneRestart(expr, restarts[[1L]])
   17.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted