Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(regmedint)
  > 
  > test_check("regmedint")
  [ FAIL 19 | WARN 0 | SKIP 0 | PASS 23 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-01_regmedint_class_ui.R:10:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-01_regmedint_class_ui.R:10:0
  ── Error (test-03_fit_mreg.R:11:1): (code run outside of `test_that()`) ────────
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-03_fit_mreg.R:11:0
  ── Error (test-04_fit_yreg_linear.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_linear.R:11:0
  ── Error (test-04_fit_yreg_logistic.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_logistic.R:11:0
  ── Error (test-04_fit_yreg_loglinear.R:13:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_loglinear.R:13:0
  ── Error (test-04_fit_yreg_negbin.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_negbin.R:11:0
  ── Error (test-04_fit_yreg_poisson.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_poisson.R:11:0
  ── Error (test-04_fit_yreg_survAFT_exp.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_survAFT_exp.R:11:0
  ── Error (test-04_fit_yreg_survAFT_weibull.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_survAFT_weibull.R:11:0
  ── Error (test-04_fit_yreg_survCox.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-04_fit_yreg_survCox.R:11:0
  ── Error (test-05_calc_myreg.R:11:1): (code run outside of `test_that()`) ──────
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-05_calc_myreg.R:11:0
  ── Error (test-06_calc_myreg_helpers_coef.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-06_calc_myreg_helpers_coef.R:11:0
  ── Error (test-06_calc_myreg_helpers_vcov.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-06_calc_myreg_helpers_vcov.R:11:0
  ── Error (test-07_calc_myreg_mreg_linear_yreg_linear.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-07_calc_myreg_mreg_linear_yreg_linear.R:11:0
  ── Error (test-07_calc_myreg_mreg_linear_yreg_logistic.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-07_calc_myreg_mreg_linear_yreg_logistic.R:11:0
  ── Error (test-07_calc_myreg_mreg_logistic_yreg_linear.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-07_calc_myreg_mreg_logistic_yreg_linear.R:11:0
  ── Error (test-07_calc_myreg_mreg_logistic_yreg_logistic.R:11:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-07_calc_myreg_mreg_logistic_yreg_logistic.R:11:0
  ── Error (test-08_regmedint_class_user_methods.R:12:1): (code run outside of `test_that()`) ──
  Error in `mutate(., male = if_else(sex == "m", 1L, 0L), status = if_else(status == 
      0, 0L, 1L), bili_bin = if_else(bili > median(bili), 1L, 0L), 
      alk_phos = alk.phos)`: could not find function "mutate"
  Backtrace:
      ▆
   1. └─testthat::describe(...) at test-08_regmedint_class_user_methods.R:12:0
   2.   └─base::eval(substitute(code), describe_environment)
   3.     └─base::eval(substitute(code), describe_environment)
   4.       └─pbc[complete.cases(pbc), ] %>% ... at test-08_regmedint_class_user_methods.R:16:4
  ── Error (test-09_cross_check_with_sas_macro.R:10:1): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `library(tidyverse)`: there is no package called 'tidyverse'
  Backtrace:
      ▆
   1. └─base::library(tidyverse) at test-09_cross_check_with_sas_macro.R:10:0
  
  [ FAIL 19 | WARN 0 | SKIP 0 | PASS 23 ]
  Error: Test failures
  Execution halted