Running ‘testthat.R’ [23s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(clubSandwich)
  Registered S3 method overwritten by 'clubSandwich':
    method    from    
    bread.mlm sandwich
  > 
  > test_check("clubSandwich")
  [ FAIL 23 | WARN 0 | SKIP 7 | PASS 416 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Not yet ready to test. (1)
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_Wald.R:203:1): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data(STAR, package = "AER") at test_Wald.R:203:0
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error (test_estfun.R:4:1): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `library(AER, quietly = TRUE)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─base::library(AER, quietly = TRUE) at test_estfun.R:4:0
  ── Error (test_ignore_absorption.R:4:1): (code run outside of `test_that()`) ───
  <packageNotFoundError/error/condition>
  Error in `library(plm)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm) at test_ignore_absorption.R:4:0
  ── Error (test_impute_covariance_matrix.R:49:3): impute_covariance_matrix returns correct correlations. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:49:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:69:3): impute_covariance_matrix works with AR1 argument. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:69:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:106:3): impute_covariance_matrix works with subgroup argument. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:106:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:140:3): impute_covariance_matrix works with smooth argument. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:140:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:177:3): impute_covariance_matrix works with unobserved factors. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:177:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:190:3): impute_covariance_matrix works with missing variances. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─clubSandwich::impute_covariance_matrix(...) at test_impute_covariance_matrix.R:190:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base withOneRestart(expr, restarts[[1L]])
   5.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_impute_covariance_matrix.R:208:3): pattern_covariance_matrix works. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test_impute_covariance_matrix.R:208:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test_ivreg.R:5:1): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `library(AER, quietly = TRUE)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─base::library(AER, quietly = TRUE) at test_ivreg.R:5:0
  ── Error (test_linear_contrast.R:19:1): (code run outside of `test_that()`) ────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data(STAR, package = "AER") at test_linear_contrast.R:19:0
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error (test_lme_2level.R:4:1): (code run outside of `test_that()`) ──────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4, quietly = TRUE)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(library(lme4, quietly = TRUE)) at test_lme_2level.R:4:0
   2. │ └─base::withCallingHandlers(...)
   3. └─base::library(lme4, quietly = TRUE)
  ── Error (test_lme_3level.R:4:1): (code run outside of `test_that()`) ──────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4, quietly = TRUE)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(library(lme4, quietly = TRUE)) at test_lme_3level.R:4:0
   2. │ └─base::withCallingHandlers(...)
   3. └─base::library(lme4, quietly = TRUE)
  ── Error (test_lmerMod.R:4:1): (code run outside of `test_that()`) ─────────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4, quietly = TRUE)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(library(lme4, quietly = TRUE)) at test_lmerMod.R:4:0
   2. │ └─base::withCallingHandlers(...)
   3. └─base::library(lme4, quietly = TRUE)
  ── Error (test_plm-ID-variables.R:4:1): (code run outside of `test_that()`) ────
  <packageNotFoundError/error/condition>
  Error in `library(plm, quietly = TRUE)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm, quietly = TRUE) at test_plm-ID-variables.R:4:0
  ── Error (test_plm-first-differences.R:4:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(plm, quietly = TRUE)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm, quietly = TRUE) at test_plm-first-differences.R:4:0
  ── Error (test_plm-fixed-effects.R:4:1): (code run outside of `test_that()`) ───
  <packageNotFoundError/error/condition>
  Error in `library(plm, quietly = TRUE)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm, quietly = TRUE) at test_plm-fixed-effects.R:4:0
  ── Error (test_plm-random-effects.R:5:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(lme4, quietly = TRUE)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::library(lme4, quietly = TRUE) at test_plm-random-effects.R:5:0
  ── Error (test_plm-unbalanced-fixed-effects.R:4:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(plm, quietly = TRUE)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm, quietly = TRUE) at test_plm-unbalanced-fixed-effects.R:4:0
  ── Error (test_plm_overspecified_problem.R:3:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(plm, quietly = TRUE)`: there is no package called 'plm'
  Backtrace:
      ▆
   1. └─base::library(plm, quietly = TRUE) at test_plm_overspecified_problem.R:3:0
  ── Error (test_rma-mv.R:8:1): (code run outside of `test_that()`) ──────────────
  <packageNotFoundError/error/condition>
  Error in `library(metafor, quietly = TRUE)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(library(metafor, quietly = TRUE)) at test_rma-mv.R:8:0
   2. │ └─base::withCallingHandlers(...)
   3. └─base::library(metafor, quietly = TRUE)
  ── Error (test_rma-uni.R:5:1): (code run outside of `test_that()`) ─────────────
  <packageNotFoundError/error/condition>
  Error in `library(metafor, quietly = TRUE)`: there is no package called 'metafor'
  Backtrace:
      ▆
   1. ├─base::suppressMessages(library(metafor, quietly = TRUE)) at test_rma-uni.R:5:0
   2. │ └─base::withCallingHandlers(...)
   3. └─base::library(metafor, quietly = TRUE)
  
  [ FAIL 23 | WARN 0 | SKIP 7 | PASS 416 ]
  Error: Test failures
  Execution halted