<packageNotFoundError/error/condition>
Error in `utils::packageVersion(pkg)`: there is no package called 'broom.helpers'

skip_if_not(is_pkg_installed(c("cardx", "car", "broom", "broom.helpers", "parameters", "survey")))
tbl_summary(include = c(age, response, death, marker), missing = "no") |>
add_variable_group_header(header = "the header row", variables = c(response, death))
# check function works on tbl_svysummary tables
survey::svydesign(~1, data = as.data.frame(Titanic), weights = ~Freq) |>
tbl_svysummary(by = Survived, percent = "row", include = c(Class, Age)) |>
add_variable_group_header(header = "the header row", variables = c(Class, Age))
# check function works on tbl_regression tables
glm(response ~ age + grade, trial, family = binomial()) |>
add_variable_group_header(header = "the header row", variables = age)
modify_table_body(~dplyr::relocate(.x, label, .after = "stat_0")) |>