tests/testthat/_snaps/modify_caption.md

no errors/warnings with all output types

Code
  tbl %>% as.data.frame()
Output
    **Characteristic** **N = 200**
  1                Age 47 (38, 57)
  2            Unknown          11
Code
  tbl2 %>% as.data.frame()
Output
    **Characteristic** **N = 200**
  1                Age 47 (38, 57)
  2            Unknown          11
Code
  tbl_with_caption %>% as.data.frame()
Output
     label2 **N = 200**
  1     Age 47 (38, 57)
  2 Unknown          11


Try the gtsummary package in your browser

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

gtsummary documentation built on July 26, 2023, 5:27 p.m.