Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(supernova)
  > 
  > test_check("supernova")
  [ FAIL 23 | WARN 21 | SKIP 13 | PASS 181 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (12)
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-print.supernova.R:98:3): nested repeated measures tables are beautifully formatted ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(value ~ instructions + (1 | group), data = get_data("jmr_ex11.1")) test-print.supernova.R:98:2
   2. └─base::loadNamespace(x) test-print.supernova.R:9:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-print.supernova.R:128:3): crossed repeated measures tables are beautifully formatted ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-print.supernova.R:128:2
   2. └─base::loadNamespace(x) test-print.supernova.R:9:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:36:3): cannot compute SS types other than Type III for lmerMod ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:36:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:46:3): there is no verbose print for lmerMod (warn and switch off) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:46:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:58:3): supernova object has table, fit, and models ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:58:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:84:3): magrittr can pipe lmer() to supernova ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
       █
    1. ├─`%>%`(...) test-supernova.lmerMod.R:84:2
    2. ├─testthat::expect_s3_class(., "supernova")
    3. │ └─testthat::quasi_label(enquo(object), arg = "object")
    4. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    5. ├─supernova::supernova(.)
    6. ├─supernova:::fit_lmer(...)
    7. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base:::withOneRestart(expr, restarts[[1L]])
   10.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:101:3): magrittr can pipe data to lm() to supernova ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
       █
    1. ├─`%>%`(...) test-supernova.lmerMod.R:101:2
    2. ├─testthat::expect_s3_class(., "supernova")
    3. │ └─testthat::quasi_label(enquo(object), arg = "object")
    4. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    5. ├─supernova::supernova(.)
    6. ├─supernova:::fit_lmer(...)
    7. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base:::withOneRestart(expr, restarts[[1L]])
   10.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:111:3): supernova can test simple nested designs ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(value ~ instructions + (1 | group), data = get_data("jmr_ex11.1")) test-supernova.lmerMod.R:111:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:124:3): supernova can test simple crossed designs ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:124:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:137:3): supernova can test multiple crossed designs ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:137:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.lmerMod.R:150:3): supernova can test mixed designs ────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-supernova.lmerMod.R:150:2
   2. └─base::loadNamespace(x) test-supernova.lmerMod.R:22:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.r:258:3): supernova calculates ANOVAs properly (including different SS types) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
       █
    1. ├─base::lapply(models_to_test, anova_tester_type_1) test-supernova.r:258:2
    2. │ └─supernova:::FUN(X[[i]], ...)
    3. │   └─supernova:::anova_tester(model, type = 1) test-supernova.r:257:25
    4. │     └─supernova:::expect_supernova(obj, type) test-supernova.r:254:4
    5. │       └─supernova:::expect_partials(object, type, ...) test-supernova.r:80:4
    6. │         └─supernova:::get_partials(object$fit, type = type) test-supernova.r:130:2
    7. │           └─base::suppressMessages(car::Anova) test-supernova.r:25:2
    8. │             └─base::withCallingHandlers(...)
    9. └─base::loadNamespace(x)
   10.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11.     └─base:::withOneRestart(expr, restarts[[1L]])
   12.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.r:307:3): supernova uses listwise deletion for missing data ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      █
   1. ├─supernova:::expect_supernova(two_way) test-supernova.r:307:2
   2. │ └─supernova:::expect_partials(object, type, ...) test-supernova.r:80:4
   3. │   └─supernova:::get_partials(object$fit, type = type) test-supernova.r:130:2
   4. │     └─base::suppressMessages(car::Anova) test-supernova.r:25:2
   5. │       └─base::withCallingHandlers(...)
   6. └─base::loadNamespace(x) test-supernova.r:25:2
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base:::withOneRestart(expr, restarts[[1L]])
   9.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-supernova.r:316:3): supernova makes correct calculations for unbalanced data ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'car'
  Backtrace:
      █
   1. ├─supernova:::expect_supernova(two_way) test-supernova.r:316:2
   2. │ └─supernova:::expect_partials(object, type, ...) test-supernova.r:80:4
   3. │   └─supernova:::get_partials(object$fit, type = type) test-supernova.r:130:2
   4. │     └─base::suppressMessages(car::Anova) test-supernova.r:25:2
   5. │       └─base::withCallingHandlers(...)
   6. └─base::loadNamespace(x) test-supernova.r:25:2
   7.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8.     └─base:::withOneRestart(expr, restarts[[1L]])
   9.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-utils-formula.R:69:3): frm_fixed_terms only extracts non-random terms from the formula ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
       █
    1. ├─testthat::expect_equal(...) test-utils-formula.R:69:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─supernova:::frm_fixed_terms(y ~ a + (1 | group))
    5. │ ├─base::setdiff(frm_terms(frm), frm_random_terms(frm))
    6. │ │ └─base::as.vector(y)
    7. │ └─supernova:::frm_random_terms(frm)
    8. └─base::loadNamespace(x)
    9.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   10.     └─base:::withOneRestart(expr, restarts[[1L]])
   11.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-utils-formula.R:73:3): frm_random_terms only extracts random terms from the formula ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-utils-formula.R:73:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─supernova:::frm_random_terms(y ~ a + (1 | group))
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base:::withOneRestart(expr, restarts[[1L]])
   8.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-utils-formula.R:81:3): frm_fixed_vars extracts only the variables used in fixed terms ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-utils-formula.R:81:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─supernova:::frm_fixed_vars(y ~ a + a:b + b:c + (1 | group))
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base:::withOneRestart(expr, restarts[[1L]])
   8.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-utils-formula.R:85:3): frm_random_vars extracts only the variables used in random terms ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─testthat::expect_equal(...) test-utils-formula.R:85:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─supernova:::frm_random_vars(y ~ a + a:b + b:c + (1 | group))
   5. └─base::loadNamespace(x)
   6.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   7.     └─base:::withOneRestart(expr, restarts[[1L]])
   8.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-variables.R:127:3): variables are extracted from simple nested models ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(value ~ instructions + (1 | group), data = get_data("jmr_ex11.1")) test-variables.R:127:2
   2. └─base::loadNamespace(x) test-variables.R:12:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-variables.R:142:3): variables are extracted from simple crossed models ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-variables.R:142:2
   2. └─base::loadNamespace(x) test-variables.R:12:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-variables.R:157:3): variables are extracted from simple crossed models with interactions ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(recall ~ type * time + (1 | subject), data = get_data("jmr_ex11.17")) test-variables.R:157:2
   2. └─base::loadNamespace(x) test-variables.R:12:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-variables.R:172:3): variables are extracted from models with multiple crossed variables ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-variables.R:172:2
   2. └─base::loadNamespace(x) test-variables.R:12:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-variables.R:190:3): variables are extracted from mixed models with interactions ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'lme4'
  Backtrace:
      █
   1. ├─supernova:::fit_lmer(...) test-variables.R:190:2
   2. └─base::loadNamespace(x) test-variables.R:12:2
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 23 | WARN 21 | SKIP 13 | PASS 181 ]
  Deleting unused snapshots:
  * pairwise/bonferroni-one-variable.svg
  * pairwise/multiple-plots-raceethnic.svg
  * pairwise/multiple-plots-sex-raceethnic.svg
  * pairwise/t-test-one-variable.svg
  Error: Test failures
  Execution halted