Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(WALS)
  > 
  > test_check("WALS")
  [ FAIL 26 | WARN 0 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-wals.R:2:3'): wals.formula with only constant focus works ──────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:2:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:14:3'): some class methods of wals ──────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:14:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:98:3'): walsMatrix coefs and covmat equal to wals ───────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:98:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:115:3'): walsMatrix predictions equal to wals ───────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:115:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:139:3'): Predictions are correct ────────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:139:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:170:3'): wals.matrix and wals.default identical ─────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:170:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:192:3'): Different methods for wals yield same results ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:192:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-wals.R:206:3'): Fitted values and prediction on same dataset are identical ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("CASchools", package = "AER") at test-wals.R:206:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:2:3'): walsGLM estimation converges ──────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:2:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:18:3'): walsGLM limiting nIt works and returns finite coefficients ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:18:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:39:3'): Different class methods of walsGLM yield same results ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:39:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:61:3'): Different methods for walsGLM yield same results ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:61:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:80:3'): residuals.walsGLM return correct values ──────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsGLM.R:80:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:103:3'): Predictions use correct link values ─────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:103:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:125:3'): logLik.walsGLM returns correct value ────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("HMDA", package = "AER") at test-walsGLM.R:125:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsGLM.R:140:3'): Probability predictions work as intended ────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsGLM.R:140:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:2:3'): walsNB estimation converges ────────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:2:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:18:3'): walsNB limiting nIt works and returns finite coefficients ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:18:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:44:3'): Different walsNB class methods yield same result ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:44:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:72:3'): walsNBmatrix predictions equal walsNB predictions ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:72:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:98:3'): residuals of walsNB return correct values ─────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:98:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:121:3'): Predictions use correct link values ──────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:121:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:143:3'): Probability prediction works ─────────────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:143:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:156:3'): Initialization with MASS::glm.nb runs ────────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:156:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:171:3'): Initialization with restricted estimator ─────
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:171:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  ── Error ('test-walsNB.R:220:3'): Different methods for walsNB yield same results ──
  <packageNotFoundError/error/condition>
  Error in `find.package(package, lib.loc, verbose = verbose)`: there is no package called 'AER'
  Backtrace:
      ▆
   1. └─utils::data("NMES1988", package = "AER") at test-walsNB.R:220:2
   2.   └─base::find.package(package, lib.loc, verbose = verbose)
  
  [ FAIL 26 | WARN 0 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted