tests/testthat/_snaps/add_variable_group_header.md

add_variable_group_header() messaging

Code
  add_variable_group_header(modify_table_body(tbl_summary(trial, include = c(age,
    response, death, marker), missing = "no"), ~ dplyr::relocate(.x, label,
    .after = "stat_0")), header = "the header row", variables = c(response, death))
Condition
  Error in `add_variable_group_header()`:
  ! The <gtsummary> table must include columns "variable", "row_type", and "label" in the `x$table_body` data frame and the "label" column must appear first.


Try the gtsummary package in your browser

Any scripts or data that you put into this service are public.

gtsummary documentation built on Aug. 9, 2025, 1:08 a.m.