Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(probstats4econ)
  > 
  > test_check("probstats4econ")
  [ FAIL 8 | WARN 0 | SKIP 7 | PASS 28 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-se_functions.R:4:3', 'test-se_functions.R:10:3',
    'test-se_functions.R:18:3', 'test-var_functions.R:11:3',
    'test-var_functions.R:17:3', 'test-var_functions.R:21:3',
    'test-wald_test.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-linear_combination.R:2:3'): SLR T test equivalence ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_slr() at test-linear_combination.R:2:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:3:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-linear_combination.R:13:3'): MLR Works ─────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_mlr() at test-linear_combination.R:13:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:11:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_linear_restrictions.R:4:3'): Basic coverage ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_mlr() at test-test_linear_restrictions.R:4:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:11:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-test_linear_restrictions.R:12:3'): No r handled ────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_mlr() at test-test_linear_restrictions.R:12:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:11:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-wald_test.R:11:3'): Vector R is handled ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_slr() at test-wald_test.R:11:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:3:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-wald_test.R:17:3'): T test equivalence ─────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_slr() at test-wald_test.R:17:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:3:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-wald_test.R:26:3'): Matrix R is handled ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_slr() at test-wald_test.R:26:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:3:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-wald_test.R:37:3'): No R is handled ────────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'estimatr'
  Backtrace:
      ▆
   1. ├─probstats4econ:::setup_slr() at test-wald_test.R:37:3
   2. └─base::loadNamespace(x) at tests/testthat/setup.R:3:3
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 0 | SKIP 7 | PASS 28 ]
  Error: Test failures
  Execution halted