Running ‘sleep.R’ [1s/1s]
  Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
  Running ‘testthat.R’ [29s/43s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(estimatr)
  > 
  > test_check("estimatr")
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  Failed with error:  'there is no package called 'car''
  [ FAIL 12 | WARN 0 | SKIP 8 | PASS 1014 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • AER cannot be loaded (4)
  • On CRAN (2)
  • car cannot be loaded (1)
  • modelsummary non reproducible errors (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-iv-robust.R:470:5): IV diagnostics ──────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. ├─base::summary(AER::ivreg(f, data = mtcars), diagnostics = TRUE) at test-iv-robust.R:470:4
   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-lh-robust.R:17:5): lh_robust works with all se types ────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─generics::tidy(...) at test-lh-robust.R:17:4
   2. ├─estimatr::lh_robust(...)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base withOneRestart(expr, restarts[[1L]])
   6.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-lh-robust.R:38:5): lh_robust with clusters works for all se_types  ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─generics::tidy(...) at test-lh-robust.R:38:4
   2. ├─estimatr::lh_robust(...)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base withOneRestart(expr, restarts[[1L]])
   6.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-lh-robust.R:61:3): lh_robust matches lm_robust with fixed effects ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(...) at test-lh-robust.R:61: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-lh-robust.R:79:3): lh_robust matches lm_robust with weights ─────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(Y ~ Z * X, data = dat, weights = w, linear_hypothesis = c("Z + Z:X = 0")) at test-lh-robust.R:79: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-lh-robust.R:98:3): lh_robust matches lm_robust with subsetted data.frame ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(Y ~ Z * X, data = dat, subset = B == 1, linear_hypothesis = c("Z + Z:X = 0")) at test-lh-robust.R:98: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-lh-robust.R:115:3): lh_robust matches lm_robust with subsetted data.frame ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(Y ~ Z * X, data = dat, subset = B == 1, linear_hypothesis = c("Z + Z:X = 0")) at test-lh-robust.R:115: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-s3-methods.R:186:3): tidy, glance, summary, and print work ──────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(...) at test-s3-methods.R:186: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-s3-methods.R:391:3): vcov works ─────────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-s3-methods.R:391:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-s3-methods.R:846:3): predict.iv_robust works with fixed effects ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-s3-methods.R:846:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-s3-methods.R:1113:3): conf int for lh_robust works ──────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      ▆
   1. ├─estimatr::lh_robust(...) at test-s3-methods.R:1113: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-stata-output.R:97:3): iv_robust matches stata ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-stata-output.R:97:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  
  [ FAIL 12 | WARN 0 | SKIP 8 | PASS 1014 ]
  Error: Test failures
  Execution halted