## ----include = FALSE---------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) ## ----eval=FALSE--------------------------------------------------------------- # options(sumExtras.auto_labels = TRUE) ## ----eval=FALSE--------------------------------------------------------------- # # Define your dictionary once # dictionary <- tibble::tribble( # ~variable, ~description, # "age", "Age at Enrollment (years)", # "marker", "Marker Level (ng/mL)", # "grade", "Tumor Grade" # ) # # # Every extras() call picks it up # trial |> # tbl_summary(by = trt) |> # extras() ## ----eval=FALSE--------------------------------------------------------------- # options(sumExtras.prefer_dictionary = TRUE)