Running ‘sleep.R’ [0s/1s]
  Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
  Running ‘testthat.R’ [24s/32s]
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#29)  ────────────
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-iv-robust.R:29
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 2. Error: iv_robust different specifications work (@test-iv-robust.R#294)  ──
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-iv-robust.R:294
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 3. Error: S3 methods (@test-iv-robust.R#324)  ───────────────────────────────
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-iv-robust.R:324
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 4. Error: lm robust F-tests are correct (@test-lm-robust.R#140)  ────────────
  there is no package called 'car'
  1: car::linearHypothesis at testthat/test-lm-robust.R:140
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 5. Error: vcov works (@test-s3-methods.R#283)  ──────────────────────────────
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-s3-methods.R:283
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 6. Error: predict.iv_robust works with fixed effects (@test-s3-methods.R#738)
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-s3-methods.R:738
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ── 7. Error: iv_robust matches stata (@test-stata-output.R#97)  ────────────────
  there is no package called 'AER'
  1: AER::ivreg at testthat/test-stata-output.R:97
  2: getExportedValue(pkg, name)
  3: asNamespace(ns)
  4: getNamespace(ns)
  5: loadNamespace(name)
  6: withRestarts(stop(cond), retry_loadNamespace = function() NULL)
  7: withOneRestart(expr, restarts[[1L]])
  8: doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 995 SKIPPED: 0 FAILED: 7
  1. Error: iv_robust matches AER + ivpack (@test-iv-robust.R#29) 
  2. Error: iv_robust different specifications work (@test-iv-robust.R#294) 
  3. Error: S3 methods (@test-iv-robust.R#324) 
  4. Error: lm robust F-tests are correct (@test-lm-robust.R#140) 
  5. Error: vcov works (@test-s3-methods.R#283) 
  6. Error: predict.iv_robust works with fixed effects (@test-s3-methods.R#738) 
  7. Error: iv_robust matches stata (@test-stata-output.R#97) 
  
  Error: testthat unit tests failed
  Execution halted