Running ‘spelling.R’
  Running ‘testthat.R’ [85s/106s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(broom.helpers)
  
  Attaching package: 'broom.helpers'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("broom.helpers")
  Stratified Independent Sampling design (with replacement)
  dpbc <- survey::svydesign(id = ~ 1, prob = ~ 1, strata = ~ edema, data = survival::pbc)
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-add_coefficients_type.R:2:1): (code run outside of `test_that()`) ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::library(gtsummary) test-add_coefficients_type.R:2:0
  ── Error (???): tidy_add_contrast() works for basic models ─────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_contrasts() checks ───────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_contrasts() works with no intercept models ────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_contrasts.R:126:3): tidy_add_contrasts() works with variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─gtsummary::trial %>% dplyr::mutate(`grade of kids` = grade) test-add_contrasts.R:126:2
   2. ├─dplyr::mutate(., `grade of kids` = grade)
   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-add_contrasts.R:157:3): tidy_add_contrasts() works with lme4::lmer ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_contrasts.R:157:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_contrasts.R:166:3): tidy_add_contrasts() works with lme4::glmer ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_contrasts.R:166:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_contrasts() works with nnet::multinom ─────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_contrasts.R:214:3): tidy_add_contrasts() works with survey::svyglm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-add_contrasts.R:214:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_estimate_to_reference_rows() works for basic models ───
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_estimate_to_reference_rows() checks ──────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_estimate_to_reference_rows.R:126:3): tidy_add_estimate_to_reference_rows() works with character variables ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─`%>%`(...) test-add_estimate_to_reference_rows.R:126:2
   2. ├─dplyr::mutate(., dplyr::across(where(is.factor), as.character))
   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-add_estimate_to_reference_rows.R:177:3): tidy_add_estimate_to_reference_rows() handles variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─gtsummary::trial %>% dplyr::mutate(`grade of kids` = grade) test-add_estimate_to_reference_rows.R:177:2
   2. ├─dplyr::mutate(., `grade of kids` = grade)
   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 (???): tidy_add_estimate_to_reference_rows() preserve estimates of continuous variables ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. ├─stats::na.omit(gtsummary::trial)
   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-add_estimate_to_reference_rows.R:203:3): tidy_add_estimate_to_reference_rows() works with lme4::lmer ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_estimate_to_reference_rows.R:203:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_estimate_to_reference_rows.R:212:3): tidy_add_estimate_to_reference_rows() works with lme4::glmer ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_estimate_to_reference_rows.R:212:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_estimate_to_reference_rows() works with nnet::multinom ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_estimate_to_reference_rows.R:252:3): tidy_add_estimate_to_reference_rows() works with survey::svyglm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-add_estimate_to_reference_rows.R:252:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_header_rows() works as expected ───────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_header_rows() checks ─────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_header_rows() works with nnet::multinom ───────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_header_rows() and mixed model ─────────────────────────
  Error: bad 'data': there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─lme4::lFormula(...)
   2.   └─lme4:::checkFormulaData(...)
  ── Error (???): tidy_add_n() works for basic models ────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_n() checks ───────────────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_n.R:137:3): tidy_add_n() works with variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─gtsummary::trial %>% dplyr::mutate(`grade of kids` = grade) test-add_n.R:137:2
   2. ├─dplyr::mutate(., `grade of kids` = grade)
   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-add_n.R:150:3): tidy_add_n() works with lme4::lmer ──────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_n.R:150:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_n.R:159:3): tidy_add_n() works with lme4::glmer ─────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_n.R:159:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_n() works with nnet::multinom ─────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_n.R:208:3): tidy_add_n() works with survey::svyglm ──────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-add_n.R:208:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_reference_rows() works as expected ────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_reference_rows() checks ──────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_reference_rows() works with different values of base in contr.treatment() ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_reference_rows() use var_label if available ───────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_reference_rows() works with nnet::multinom ────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_term_labels.R:2:3): tidy_add_term_labels() works for basic models ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_term_labels.R:2:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_term_labels() checks ─────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_term_labels.R:96:3): tidy_add_term_labels() correctly manages interaction terms ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_term_labels.R:96:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_term_labels() works with poly or helmert contrasts ────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_term_labels.R:148:3): tidy_add_term_labels() works with variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─`%>%`(...) test-add_term_labels.R:148:2
   2. ├─dplyr::rename(., `grade of kids...` = grade, `?? treatment ++ response ...` = response)
   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 (???): tidy_add_term_labels() works with nnet::multinom ───────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_term_labels.R:236:3): tidy_add_term_labels() works with survey::svyglm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-add_term_labels.R:236:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_variable_labels.R:4:3): tidy_add_variable_labels() works for basic models ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_variable_labels.R:4:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_add_variable_labels() checks ─────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_variable_labels.R:127:3): tidy_add_variable_labels() correctly manages interaction terms ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-add_variable_labels.R:127:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_variable_labels.R:165:3): tidy_add_variable_labels() works with variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─gtsummary::trial %>% dplyr::mutate(`grade of kids` = grade) test-add_variable_labels.R:165:2
   2. ├─dplyr::mutate(., `grade of kids` = grade)
   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-add_variable_labels.R:217:3): tidy_add_variable_labels() works with survival::coxph ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survival::coxph(survival::Surv(ttdeath, death) ~ grade, gtsummary::trial) test-add_variable_labels.R:217:2
   2. │ ├─stats::terms(formula, specials = ss, data = data)
   3. │ └─stats::terms.formula(formula, specials = ss, data = data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_variable_labels.R:238:3): tidy_add_variable_labels() works with survival::survreg ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survival::survreg(survival::Surv(ttdeath, death) ~ grade, gtsummary::trial) test-add_variable_labels.R:238:2
   2. │ ├─stats::terms(formula, specials = ss, data = data)
   3. │ └─stats::terms.formula(formula, specials = ss, data = data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_add_variable_labels() works with nnet::multinom ───────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-add_variable_labels.R:256:3): tidy_add_variable_labels() works with survey::svyglm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-add_variable_labels.R:256:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_disambiguate_terms() changes nothing for basic models ─────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-identify_variables.R:2:1): (code run outside of `test_that()`) ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::library(gtsummary) test-identify_variables.R:2:0
  ── Error (???): model_get_n() works for basic models ───────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-model_get_n.R:122:3): model_get_n() handles variables having non standard name ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─gtsummary::trial %>% dplyr::mutate(`grade of kids` = grade) test-model_get_n.R:122:2
   2. ├─dplyr::mutate(., `grade of kids` = grade)
   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 (???): model_get_n() works with different contrasts ───────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-model_get_n.R:191:3): model_get_n() works with lme4::lmer ───────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-model_get_n.R:191:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-model_get_n.R:201:3): model_get_n() works with lme4::glmer ──────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. └─base::loadNamespace(x) test-model_get_n.R:201:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base:::withOneRestart(expr, restarts[[1L]])
   4.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): model_get_n() works with nnet::multinom ────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-model_get_n.R:262:3): model_get_n() works with survey::svyglm ───
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-model_get_n.R:262:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_remove_intercept() works for basic models ─────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_remove_intercept() checks ────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: all_*() ────────────────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: tidy_plus_plus ─────────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: tidy_add_header_rows ───────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: tidy_add_variable_labels ───────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: .generic_selector  ─────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): select_helpers: .formula_list_to_named_list  ───────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_select_variables() works for basic models ─────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): test tidy_select_variables() checks ────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_plus_plus() works for basic models ────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_plus_plus() works with no intercept models ────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-tidy_plus_plus.R:50:3): tidy_plus_plus() and functionnal programming ──
  `... <- NULL` threw an error.
  Message: Problem with `mutate()` input `df_model`.
  ✖ there is no package called 'gtsummary'
  ℹ Input `df_model` is `purrr::map(...)`.
  Class:   dplyr:::mutate_error/dplyr_error/rlang_error/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-tidy_plus_plus.R:50:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─`%>%`(...)
    7. ├─dplyr::mutate(...)
    8. ├─dplyr::mutate(...)
    9. ├─dplyr:::mutate.data.frame(...)
   10. │ └─dplyr:::mutate_cols(.data, ...)
   11. │   ├─base::withCallingHandlers(...)
   12. │   └─mask$eval_all_mutate(quo)
   13. ├─purrr::map(...)
   14. │ └─broom.helpers:::.f(.x[[i]], ...)
   15. │   └─gtsummary::trial %>% dplyr::filter(grade == ..1)
   16. ├─dplyr::filter(., grade == ..1)
   17. ├─base::loadNamespace(x)
   18. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   19. │ │ └─base:::withOneRestart(expr, restarts[[1L]])
   20. │ │   └─base:::doWithOneRestart(return(expr), restart)
   21. │ └─base::stop(cond)
   22. └─(function (e) ...
  ── Error (test-tidy_plus_plus.R:73:3): tidy_plus_plus() and functionnal programming ──
  Error: Problem with `mutate()` input `df_model`.
  ✖ there is no package called 'gtsummary'
  ℹ Input `df_model` is `purrr::map(...)`.
  Backtrace:
       █
    1. ├─testthat::expect_message(...) test-tidy_plus_plus.R:73:2
    2. │ └─testthat:::quasi_capture(enquo(object), label, capture_messages)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::suppressWarnings(...)
    7. │ └─base::withCallingHandlers(...)
    8. ├─`%>%`(...)
    9. ├─dplyr::mutate(...)
   10. ├─dplyr::mutate(...)
   11. ├─dplyr:::mutate.data.frame(...)
   12. │ └─dplyr:::mutate_cols(.data, ...)
   13. │   ├─base::withCallingHandlers(...)
   14. │   └─mask$eval_all_mutate(quo)
   15. ├─purrr::map(...)
   16. │ └─broom.helpers:::.f(.x[[i]], ...)
   17. │   └─gtsummary::trial %>% dplyr::filter(grade == ..1)
   18. ├─dplyr::filter(., grade == ..1)
   19. ├─base::loadNamespace(x)
   20. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   21. │ │ └─base:::withOneRestart(expr, restarts[[1L]])
   22. │ │   └─base:::doWithOneRestart(return(expr), restart)
   23. │ └─base::stop(cond)
   24. └─(function (e) ...
  ── Error (test-tidy_plus_plus.R:100:3): tidy_plus_plus() with mice objects ─────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─base::suppressWarnings(...) test-tidy_plus_plus.R:100:2
   2. │ └─base::withCallingHandlers(...)
   3. ├─mice::mice(gtsummary::trial, maxit = 2, m = 2, print = FALSE)
   4. │ └─mice:::check.dataform(data)
   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 (???): tidy_plus_plus() with tidyselect ───────────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_plus_plus() works with nnet::multinom ─────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(formula = grade ~ stage + marker + age, data = gtsummary::trial)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-tidy_plus_plus.R:257:3): tidy_plus_plus() works with survey::svyglm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─survey::svydesign(~1, weights = ~1, data = gtsummary::trial) test-tidy_plus_plus.R:257:2
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base:::withOneRestart(expr, restarts[[1L]])
   5.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-tidy_plus_plus.R:408:3): tidy_plus_plus() works with lfe::felm ──
  Error: there is no package called 'gtsummary'
  Backtrace:
       █
    1. ├─lfe::felm(marker ~ age + grade | stage | 0, gtsummary::trial) test-tidy_plus_plus.R:408:2
    2. │ └─lfe:::makematrix(...)
    3. │   ├─base::eval(mfcall)
    4. │   │ └─base::eval(mfcall)
    5. │   └─base::evalq(...)
    6. │     └─base::evalq(...)
    7. │       ├─stats::model.frame(...)
    8. │       ├─Formula:::model.frame.Formula(...)
    9. │       │ ├─stats::model.frame(...)
   10. │       │ ├─stats::terms(formula, lhs = lhs, rhs = rhs, data = data, dot = dot)
   11. │       │ └─Formula:::terms.Formula(...)
   12. │       │   ├─stats::terms(form, ...)
   13. │       │   └─stats::terms.formula(form, ...)
   14. │       └─lfe:::..pdata.coerce..(gtsummary::trial)
   15. └─base::loadNamespace(x)
   16.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   17.     └─base:::withOneRestart(expr, restarts[[1L]])
   18.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (???): tidy_plus_plus() works with mgcv::gam ──────────────────────────
  Error: there is no package called 'gtsummary'
  Backtrace:
      █
   1. ├─stats::model.frame(...)
   2. ├─stats::model.frame.default(...)
   3. │ └─base::is.data.frame(data)
   4. └─base::loadNamespace(x)
   5.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   6.     └─base:::withOneRestart(expr, restarts[[1L]])
   7.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 78 | WARN 0 | SKIP 0 | PASS 133 ]
  Error: Test failures
  Execution halted