Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(apa)
  > 
  > test_check("apa")
  ── 1. Error: Output for anova_apa: oneway between ANOVA (@test-anova-apa.R#44)  
  there is no package called 'afex'
  1: anova_apa(afex::aov_ez(id = "id", dv = "libido", data = data, between = "dose"), 
         print = FALSE) at testthat/test-anova-apa.R:44
  2: afex::aov_ez
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 2. Error: Output for anova_apa: factorial between ANOVA (@test-anova-apa.R#80
  there is no package called 'afex'
  1: anova_apa(afex::aov_ez(id = "id", dv = "attractiveness", data = data, between = c("gender", 
         "alcohol")), print = FALSE) at testthat/test-anova-apa.R:80
  2: afex::aov_ez
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 3. Error: Output for anova_apa: repeated-measures ANOVA (@test-anova-apa.R#13
  there is no package called 'afex'
  1: anova_apa(afex::aov_ez(id = "id", dv = "retch", data = data, within = "animal"), 
         print = FALSE) at testthat/test-anova-apa.R:134
  2: afex::aov_ez
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 4. Error: Output for anova_apa: factorial repeated-measures ANOVA (@test-anov
  there is no package called 'afex'
  1: anova_apa(afex::aov_ez(id = "id", dv = "attitude", data = data, within = c("drink", 
         "imagery")), print = FALSE) at testthat/test-anova-apa.R:180
  2: afex::aov_ez
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 5. Error: Output for anova_apa: mixed ANOVA (@test-anova-apa.R#245)  ────────
  there is no package called 'afex'
  1: anova_apa(afex::aov_ez(id = "id", dv = "rating", data = data, between = "gender", 
         within = c("looks", "personality")), print = FALSE) at testthat/test-anova-apa.R:245
  2: afex::aov_ez
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  ── 6. Error: (unknown) (@test-anova-apa.R#320)  ────────────────────────────────
  there is no package called 'afex'
  1: suppressMessages(afex::aov_ez(id = "id", dv = "libido", data = data, between = "dose")) at testthat/test-anova-apa.R:320
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: afex::aov_ez
  4: getExportedValue(pkg, name)
  5: asNamespace(ns)
  6: getNamespace(ns)
  7: tryCatch(loadNamespace(name), error = function(e) stop(e))
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 75 SKIPPED: 0 FAILED: 6
  1. Error: Output for anova_apa: oneway between ANOVA (@test-anova-apa.R#44) 
  2. Error: Output for anova_apa: factorial between ANOVA (@test-anova-apa.R#80) 
  3. Error: Output for anova_apa: repeated-measures ANOVA (@test-anova-apa.R#134) 
  4. Error: Output for anova_apa: factorial repeated-measures ANOVA (@test-anova-apa.R#180) 
  5. Error: Output for anova_apa: mixed ANOVA (@test-anova-apa.R#245) 
  6. Error: (unknown) (@test-anova-apa.R#320) 
  
  Error: testthat unit tests failed
  Execution halted