Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(apa)
  > 
  > test_check("apa")
  ── 1. Error: Formal structure for anova_apa output (@test-anova-apa.R#8)  ──────
  there is no package called 'ez'
  Backtrace:
   1. base::library(ez)
  
  ── 2. Error: Output for anova_apa: oneway between ANOVA (@test-anova-apa.R#45)  
  there is no package called 'afex'
  Backtrace:
   1. apa::anova_apa(...)
   2. afex::aov_ez
   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)
  
  ── 3. Error: Output for anova_apa: factorial between ANOVA (@test-anova-apa.R#81
  there is no package called 'afex'
  Backtrace:
   1. apa::anova_apa(...)
   2. afex::aov_ez
   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)
  
  ── 4. Error: Output for anova_apa: repeated-measures ANOVA (@test-anova-apa.R#13
  there is no package called 'afex'
  Backtrace:
   1. apa::anova_apa(...)
   2. afex::aov_ez
   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)
  
  ── 5. Error: Output for anova_apa: factorial repeated-measures ANOVA (@test-anov
  there is no package called 'afex'
  Backtrace:
   1. apa::anova_apa(...)
   2. afex::aov_ez
   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)
  
  ── 6. Error: Output for anova_apa: mixed ANOVA (@test-anova-apa.R#246)  ────────
  there is no package called 'afex'
  Backtrace:
   1. apa::anova_apa(...)
   2. afex::aov_ez
   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)
  
  ── 7. Error: (unknown) (@test-anova-apa.R#321)  ────────────────────────────────
  there is no package called 'afex'
  Backtrace:
    1. base::suppressMessages(...)
    3. afex::aov_ez
    4. base::getExportedValue(pkg, name)
    5. base::asNamespace(ns)
    6. base::getNamespace(ns)
    7. base::loadNamespace(name)
    8. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9. base:::withOneRestart(expr, restarts[[1L]])
   10. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 73 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: Formal structure for anova_apa output (@test-anova-apa.R#8) 
  2. Error: Output for anova_apa: oneway between ANOVA (@test-anova-apa.R#45) 
  3. Error: Output for anova_apa: factorial between ANOVA (@test-anova-apa.R#81) 
  4. Error: Output for anova_apa: repeated-measures ANOVA (@test-anova-apa.R#135) 
  5. Error: Output for anova_apa: factorial repeated-measures ANOVA (@test-anova-apa.R#181) 
  6. Error: Output for anova_apa: mixed ANOVA (@test-anova-apa.R#246) 
  7. Error: (unknown) (@test-anova-apa.R#321) 
  
  Error: testthat unit tests failed
  Execution halted