Running ‘testthat.R’ [8s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lvmisc)
  > 
  > test_check("lvmisc")
  [ FAIL 8 | WARN 8 | SKIP 6 | PASS 225 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-percent_class.R:5:3', 'test-plot_model.R:6:3',
    'test-plots.R:26:3', 'test-plots.R:36:3', 'test-plots.R:46:3',
    'test-plots.R:68:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-accuracy_method.R:54:3'): accuracy() returns a data frame with the right columns ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-accuracy_method.R:54:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-compare_accuracy.R:33:3'): compare_accuracy() works for models of class lmerMod ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-compare_accuracy.R:33:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-compare_accuracy.R:68:3'): compare_accuracy() works for models of different classes ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-compare_accuracy.R:68:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-compare_accuracy.R:89:3'): compare_accuracy() throws the correct warnigns ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-compare_accuracy.R:89:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-loo_cv.R:77:3'): loo_cv method for lmerMod class works ─────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-loo_cv.R:77:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-plot_bland_altman.R:34:3'): output of plot_bland_altman() is stable ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-plot_bland_altman.R:34:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-r2.R:36:3'): r2 lm and lmerMod methods works ───────────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-r2.R:36:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-vif.R:37:3'): model without intercept gets a warning ───────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-vif.R:37:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 8 | WARN 8 | SKIP 6 | PASS 225 ]
  Error: Test failures
  Execution halted