View source: R/write_xlsx_flex.R
| write_xlsx_flex | R Documentation |
Write a data frame or a named list of data frames to an Excel file with optional styling.
write_xlsx_flex(
data,
file_path,
overwrite = TRUE,
timestamp = FALSE,
with_style = TRUE,
auto_col_width = TRUE,
open_after = FALSE,
verbose = TRUE
)
data |
A data.frame, or a named list of data.frames. |
file_path |
Output path to a |
overwrite |
Whether to overwrite if the file exists. Default: TRUE. |
timestamp |
Whether to append a date suffix ( |
with_style |
Whether to apply a simple header style (bold, fill, centered). Default: TRUE. |
auto_col_width |
Whether to auto-adjust column widths. Default: TRUE. |
open_after |
Whether to open the file after writing (platform-dependent). Default: FALSE. |
verbose |
Whether to print CLI messages (info/warn/success). Errors are always shown. Default: TRUE. |
No return value; writes a file to disk.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.