Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidystats)
  This version of tidystats uses a new and improved way of structuring statistics. This breaks previous (major) versions of tidystats.
  > 
  > test_check("tidystats")
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 142 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_BayesFactor.R:3:1'): (code run outside of `test_that()`) ───────
  <packageNotFoundError/error/condition>
  Error in `library(BayesFactor)`: there is no package called 'BayesFactor'
  Backtrace:
      ▆
   1. └─base::library(BayesFactor) at test_BayesFactor.R:3:1
  ── Error ('test_Hmisc.R:17:3'): Hmisc's rcorr works ────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(name)`: there is no package called 'afex'
  Backtrace:
       ▆
    1. └─tidystats:::expect_equal_models(model = model, expected_tidy_model = expected_statistics$rcorr) at test_Hmisc.R:17:3
    2.   ├─tidystats::tidy_stats(model)
    3.   └─tidystats:::tidy_stats.rcorr(model)
    4.     └─tidystats:::add_package_info(analysis, "afex")
    5.       └─base::getNamespaceVersion(package)
    6.         └─base::asNamespace(ns)
    7.           └─base::getNamespace(ns)
    8.             ├─.Internal(getRegisteredNamespace(name)) %||% ...
    9.             └─base::loadNamespace(name)
   10.               └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.                 └─base (local) withOneRestart(expr, restarts[[1L]])
   12.                   └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_afex.R:3:1'): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `library(afex)`: there is no package called 'afex'
  Backtrace:
      ▆
   1. └─base::library(afex) at test_afex.R:3:1
  ── Error ('test_lme4.R:8:3'): lme4 works ───────────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lme4.R:8:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lme4.R:17:3'): lme4 ML works ───────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lme4.R:17:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lme4.R:28:3'): lme4 slopes works ───────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lme4.R:28:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lme4.R:39:3'): lme4 anova works ────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lme4.R:39:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lme4.R:49:3'): lme4 anova model comparison works ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lme4.R:49:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:8:3'): lmerTest 1 works ─────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:8:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:19:3'): lmerTest 2 works ────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:19:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:32:3'): lmerTest ML works ───────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:32:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:46:3'): lmerTest anova works ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:46:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:56:3'): lmerTest anova lme4 works ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:56:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test_lmerTest.R:66:3'): lmerTest anova fit works ────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lmerTest'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_lmerTest.R:66:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 14 | WARN 0 | SKIP 0 | PASS 142 ]
  Error: Test failures
  Execution halted