Running ‘sleep.R’
  Comparing ‘sleep.Rout’ to ‘sleep.Rout.save’ ... OK
  Running ‘testthat.R’ [72s/114s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(estimatr)
  > 
  > test_check("estimatr")
  ── ERROR (test-iv-robust-fes.R:112:3): IV FE matches lfe including proj r2 ─────
  Error: there is no package called 'lfe'
  Backtrace:
      █
   1. └─lfe::felm test-iv-robust-fes.R:112:2
   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)
  
  ── FAILURE (test-iv-robust.R:125:3): iv_robust matches AER + ivpack ────────────
  coef(ivdefr) not equal to coef(ivdef).
  2/3 mismatches (average diff: NaN)
  [2]      NA - -0.0309 == NA
  [3] -0.0309 -      NA == NA
  
  ── FAILURE (test-iv-robust.R:130:3): iv_robust matches AER + ivpack ────────────
  as.matrix(...) not equivalent to ivdefse[, 1:4].
  4/8 mismatches (average diff: NaN)
  [2] NA - -0.0309 == NA
  [4] NA -  0.4598 == NA
  [6] NA - -0.0672 == NA
  [8] NA -  0.9472 == NA
  
  ── Skip (test-iv-robust.R:231:3): iv_robust matches AER + clubSandwich ─────────
  Reason: On CRAN
  
  ── Skip (test-lm-cluster.R:182:3): Clustered SEs match clubSandwich ────────────
  Reason: On CRAN
  
  ── Skip (test-lm-cluster.R:213:3): multiple outcomes ───────────────────────────
  Reason: On CRAN
  
  ── ERROR (test-lm-robust-fes.R:459:3): FEs give correct projected F-stats ──────
  Error: there is no package called 'lfe'
  Backtrace:
      █
   1. └─lfe::felm test-lm-robust-fes.R:459:2
   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)
  
  ── Skip (test-lm-robust-fes.R:700:3): Handle perfect fits appropriately ────────
  Reason: On Solaris
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (3)
  ● On Solaris (1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-iv-robust-fes.R:112:3): IV FE matches lfe including proj r2
  FAILURE (test-iv-robust.R:125:3): iv_robust matches AER + ivpack
  FAILURE (test-iv-robust.R:130:3): iv_robust matches AER + ivpack
  ERROR (test-lm-robust-fes.R:459:3): FEs give correct projected F-stats
  
  [ FAIL 4 | WARN 0 | SKIP 4 | PASS 1283 ]
  Error: Test failures
  Execution halted