save_output | R Documentation |
Save an Output
save_output(output, file_name, save_rds = TRUE)
save_output(output, file_name, save_rds = TRUE)
save_output.autoslider_error(output, file_name, save_rds = TRUE)
## S4 method for signature 'dVTableTree'
save_output(output, file_name, save_rds = TRUE)
save_output.decoratedGrob(output, file_name, save_rds = TRUE)
save_output.decoratedGrobSet(output, file_name, save_rds = TRUE)
save_output.dlisting(output, file_name, save_rds = TRUE)
output |
Output object, e.g. an 'rtable' or 'grob' |
file_name |
Full path of the new file *excluding* the extension |
save_rds |
Saved as an '.rds' files |
Tables are saved as RDS file
The input 'object' invisibly
No return value, called for side effects
The input 'object' invisibly
The input 'object' invisibly
The input 'object' invisibly
library(dplyr)
adsl <- eg_adsl %>%
filter(SAFFL == "Y") %>%
mutate(TRT01P = factor(TRT01P, levels = c("A: Drug X", "B: Placebo")))
output_dir <- tempdir()
t_dm_slide(adsl, "TRT01P", c("SEX", "AGE", "RACE", "ETHNIC", "COUNTRY")) %>%
decorate(
title = "Demographic table",
footnote = ""
) %>%
save_output(
file_name = file.path(output_dir, "t_dm_SE"),
save_rds = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.