Running 'spelling.R' [0s/0s]
  Running 'testthat.R' [270s/302s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(gtsummary)
  
  Attaching package: 'gtsummary'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("gtsummary")
  -- 1. Failure: no errors/warnings with standard use after tbl_regression (@test-
  ``%>%`(...)` threw an error.
  Message: The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. stats::lm(hp ~ factor(cyl) + mpg + factor(am), mtcars)
    2. gtsummary::tbl_regression(.)
   10. gtsummary::add_global_p(.)
  
  -- 2. Error: no errors/warnings with standard use after tbl_regression (@test-ad
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
    1. testthat::expect_warning(...)
    2. stats::lm(hp ~ factor(cyl) + mpg + factor(am), mtcars)
    2. gtsummary::tbl_regression(.)
   10. gtsummary::add_global_p(.)
  
  -- 3. Failure: no errors/warnings with standard use after tbl_uvregression (@tes
  `trial %>% tbl_uvregression(method = lm, y = age) %>% add_global_p()` threw an error.
  Message: The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Class:   simpleError/error/condition
  Backtrace:
    1. testthat::expect_error(...)
    2. gtsummary::tbl_uvregression(., method = lm, y = age)
   10. gtsummary::add_global_p(.)
  
  -- 4. Error: no errors/warnings with standard use after tbl_uvregression (@test-
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
    1. testthat::expect_warning(...)
    2. gtsummary::tbl_uvregression(., method = lm, y = age)
   10. gtsummary::add_global_p(.)
  
  -- 5. Error: no errors/warnings with standard use after tbl_uvregression() and a
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
   1. gtsummary::tbl_uvregression(., method = lm, y = age)
   9. gtsummary::add_global_p(.)
  
  -- 6. Error: no errors/warnings with use in tbl_uvregression() with add_global_p
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
   1. gtsummary::tbl_uvregression(., method = lm, y = age)
   9. gtsummary::add_global_p(.)
  
  -- 7. Failure: combine_terms works without error (@test-combine_terms.R#46)  ---
  ``%>%`(...)` threw an error.
  Message: The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Class:   simpleError/error/condition
  Backtrace:
   1. testthat::expect_error(...)
   2. stats::lm(age ~ marker + I(marker^2) + stage, na.omit(trial))
   2. gtsummary::tbl_regression(.)
   9. gtsummary::add_global_p(.)
  
  -- 8. Error: no errors/warnings with standard use after tbl_regression() and add
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
   1. stats::glm(response ~ age + grade, trial, family = binomial(link = "logit"))
   1. gtsummary::tbl_regression(., exponentiate = TRUE)
   9. gtsummary::add_global_p(.)
  
  -- 9. Error: no errors/warnings with standard use after tbl_regression() and add
  The 'car' package is required for 'add_global_p'.
  Install with install.packages('car')
  Backtrace:
   1. gtsummary::tbl_uvregression(...)
   9. gtsummary::add_global_p(.)
  
  == testthat results  ===========================================================
  [ OK: 322 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 9 ]
  1. Failure: no errors/warnings with standard use after tbl_regression (@test-add_global_p.R#4) 
  2. Error: no errors/warnings with standard use after tbl_regression (@test-add_global_p.R#7) 
  3. Failure: no errors/warnings with standard use after tbl_uvregression (@test-add_global_p.R#20) 
  4. Error: no errors/warnings with standard use after tbl_uvregression (@test-add_global_p.R#23) 
  5. Error: no errors/warnings with standard use after tbl_uvregression() and add_global_p() (@test-add_q.R#28) 
  6. Error: no errors/warnings with use in tbl_uvregression() with add_global_p() (@test-bold_p.R#70) 
  7. Failure: combine_terms works without error (@test-combine_terms.R#46) 
  8. Error: no errors/warnings with standard use after tbl_regression() and add_global_p() (@test-sort_p.R#14) 
  9. Error: no errors/warnings with standard use after tbl_regression() and add_global_p() (@test-sort_p.R#23) 
  
  Error: testthat unit tests failed
  Execution halted