tests/testthat/helper-render_formats.R

# Testable version of the `render_formats()` function
render_formats_test <- function(data,
                                context) {

  data %>%
    build_data(context = context) %>%
    .$`_body`
}

Try the gt package in your browser

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

gt documentation built on Oct. 7, 2023, 9:07 a.m.