Running ‘sleep.R’ [2s/3s]
  Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
  Running ‘testthat.R’ [27s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(estimatr)
  > 
  > test_check("estimatr")
  ── 1. Error: iv_robust matches AER + ivpack (@test-iv-robust.R#30)  ────────────
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Error: iv_robust matches AER + clubSandwich (@test-iv-robust.R#233)  ─────
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: iv_robust different specifications work (@test-iv-robust.R#314)  ──
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: S3 methods (@test-iv-robust.R#344)  ───────────────────────────────
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 5. Error: IV diagnostics (@test-iv-robust.R#453)  ───────────────────────────
  there is no package called 'AER'
  Backtrace:
   1. base::summary(AER::ivreg(f, data = mtcars), diagnostics = TRUE)
   2. AER::ivreg
   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)
  
  Failed with error:  'there is no package called 'car''
  ── 6. Error: lh_robust works with all se types (@test-lh-robust.R#17)  ─────────
  there is no package called 'car'
  Backtrace:
    1. generics::tidy(...)
    2. estimatr::lh_robust(...)
    3. car::linearHypothesis
    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)
  
  Failed with error:  'there is no package called 'car''
  ── 7. Error: lh_robust with clusters works for all se_types  (@test-lh-robust.R#
  there is no package called 'car'
  Backtrace:
    1. generics::tidy(...)
    2. estimatr::lh_robust(...)
    3. car::linearHypothesis
    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)
  
  Failed with error:  'there is no package called 'car''
  ── 8. Error: lh_robust matches lm_robust with fixed effects (@test-lh-robust.R#6
  there is no package called 'car'
  Backtrace:
   1. estimatr::lh_robust(...)
   2. car::linearHypothesis
   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)
  
  Failed with error:  'there is no package called 'car''
  ── 9. Error: lh_robust matches lm_robust with weights (@test-lh-robust.R#79)  ──
  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"))
   2. car::linearHypothesis
   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)
  
  Failed with error:  'there is no package called 'car''
  ── 10. Error: lh_robust matches lm_robust with subsetted data.frame (@test-lh-ro
  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"))
   2. car::linearHypothesis
   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)
  
  Failed with error:  'there is no package called 'car''
  ── 11. Error: lh_robust matches lm_robust with subsetted data.frame (@test-lh-ro
  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"))
   2. car::linearHypothesis
   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)
  
  Failed with error:  'there is no package called 'car''
  ── 12. Error: lm robust F-tests are correct (@test-lm-robust.R#140)  ───────────
  there is no package called 'car'
  Backtrace:
   1. car::linearHypothesis
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  Failed with error:  'there is no package called 'car''
  ── 13. Error: tidy, glance, summary, and print work (@test-s3-methods.R#186)  ──
  there is no package called 'car'
  Backtrace:
   1. estimatr::lh_robust(...)
   2. car::linearHypothesis
   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)
  
  ── 14. Error: vcov works (@test-s3-methods.R#360)  ─────────────────────────────
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 15. Error: predict.iv_robust works with fixed effects (@test-s3-methods.R#815
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ── 16. Error: iv_robust matches stata (@test-stata-output.R#97)  ───────────────
  there is no package called 'AER'
  Backtrace:
   1. AER::ivreg
   2. base::getExportedValue(pkg, name)
   3. base::asNamespace(ns)
   4. base::getNamespace(ns)
   5. base::loadNamespace(name)
   6. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7. base:::withOneRestart(expr, restarts[[1L]])
   8. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1031 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 16 ]
  1. Error: iv_robust matches AER + ivpack (@test-iv-robust.R#30) 
  2. Error: iv_robust matches AER + clubSandwich (@test-iv-robust.R#233) 
  3. Error: iv_robust different specifications work (@test-iv-robust.R#314) 
  4. Error: S3 methods (@test-iv-robust.R#344) 
  5. Error: IV diagnostics (@test-iv-robust.R#453) 
  6. Error: lh_robust works with all se types (@test-lh-robust.R#17) 
  7. Error: lh_robust with clusters works for all se_types  (@test-lh-robust.R#38) 
  8. Error: lh_robust matches lm_robust with fixed effects (@test-lh-robust.R#61) 
  9. Error: lh_robust matches lm_robust with weights (@test-lh-robust.R#79) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted