Running ‘testthat.R’ [6s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(dominanceanalysis)
  > 
  > test_check("dominanceanalysis")
  [ FAIL 9 | WARN 3 | SKIP 0 | PASS 151 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-beta-with-gasolineyield-example.R:2:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(betareg)`: there is no package called 'betareg'
  Backtrace:
      ▆
   1. └─base::library(betareg) at test-beta-with-gasolineyield-example.R:2:0
  ── Error (test-da-with-lmm.R:3:1): (code run outside of `test_that()`) ─────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::library(lme4) at test-da-with-lmm.R:3:0
  ── Error (test-daAverageBootstrap.R:47:3): should work for betareg ─────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'betareg'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-daAverageBootstrap.R:47:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base withOneRestart(expr, restarts[[1L]])
   4.       └─base doWithOneRestart(return(expr), restart)
  ── Error (test-daAverageBootstrap.R:55:3): should work for lme4 ────────────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::library(lme4) at test-daAverageBootstrap.R:55:2
  ── Error (test-daSubModels.R:74:2): Correct submodels for standard data.frame and lmer ──
  Error in `lmer(y ~ xa + xb + xc + (1 | g), d.f)`: could not find function "lmer"
  ── Error (test-dominanceanalysis-with-dynlm.R:3:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(dynlm)`: there is no package called 'dynlm'
  Backtrace:
      ▆
   1. └─base::library(dynlm) at test-dominanceanalysis-with-dynlm.R:3:0
  ── Error (test-getdata-method.R:2:1): (code run outside of `test_that()`) ──────
  <packageNotFoundError/error/condition>
  Error in `library(lme4)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::library(lme4) at test-getdata-method.R:2:0
  ── Error (test-lmWithCovsMlm.R:3:1): (code run outside of `test_that()`) ───────
  <packageNotFoundError/error/condition>
  Error in `library(car)`: there is no package called 'car'
  Backtrace:
      ▆
   1. └─base::library(car) at test-lmWithCovsMlm.R:3:0
  ── Error (test-lmmR2-lme4.R:2:1): (code run outside of `test_that()`) ──────────
  <packageNotFoundError/error/condition>
  Error in `library(lme4)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::library(lme4) at test-lmmR2-lme4.R:2:0
  
  [ FAIL 9 | WARN 3 | SKIP 0 | PASS 151 ]
  Error: Test failures
  Execution halted