Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(AgreementInterval)
  Loading required package: psych
  
  Attaching package: 'psych'
  
  The following object is masked from 'package:testthat':
  
      describe
  
  > 
  > test_check("AgreementInterval")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-ai.R:6:11): ai returns correct classes ──────────────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─testthat::expect_is(ai(a, b), "ai") test-ai.R:6:10
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─AgreementInterval::ai(a, b)
   5. │ └─psych::ICC(x = x1, alpha = alpha)
   6. └─base::loadNamespace(x)
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base:::withOneRestart(expr, restarts[[1L]])
   9.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-ai.R:18:1): (code run outside of `test_that()`) ─────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─AgreementInterval::ai(x = IPIA$Tomography, y = IPIA$Urography) test-ai.R:18:0
   2. │ └─psych::ICC(x = x1, alpha = alpha)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-aiAdj.R:3:1): (code run outside of `test_that()`) ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─AgreementInterval::ai(x = IPIA$Tomography, y = IPIA$Urography) test-aiAdj.R:3:0
   2. │ └─psych::ICC(x = x1, alpha = alpha)
   3. └─base::loadNamespace(x)
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base:::withOneRestart(expr, restarts[[1L]])
   6.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 19 ]
  Error: Test failures
  Execution halted