tests/testthat/_snaps/add_blank_rows.md

add_blank_rows() error message

Code
  add_blank_rows(tbl_roche_summary(trial, by = trt, statistic = age ~ "{mean}",
  include = c(age, grade), nonmissing = "no"), variables = age, row_numbers = c(1,
    1))
Condition
  Error in `add_blank_rows()`:
  ! One and only one of the following arguments may be specified: `variables`, `row_numbers`, and `variable_level`

add_blank_rows() errors when no variable

Code
  add_blank_rows(gtsummary::as_gtsummary(gtsummary::trial[1:5, 1:2]), variables = everything())
Condition
  Error in `add_blank_rows()`:
  ! The `variables` argument cannot be specified when `x$table_body` does not have a column named "variable".


Try the crane package in your browser

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

crane documentation built on Aug. 30, 2025, 1:12 a.m.