Learn R Programming

openxlsx2 (version 0.3.1)

wb_save: Save Workbook to file

Description

Save Workbook to file

Usage

wb_save(wb, path = NULL, overwrite = TRUE)

Arguments

wb

A wbWorkbook object to write to file

path

A path to save the workbook to

overwrite

If FALSE, will not overwrite when path exists

See Also

Other workbook wrappers: wb_add_data_table(), wb_add_data(), wb_add_formula(), wb_add_worksheet(), wb_clone_worksheet(), wb_creators, wb_freeze_pane(), wb_get_base_font(), wb_set_col_widths(), wb_set_last_modified_by(), wb_set_row_heights(), wb_workbook(), workbook_grouping, ws_cell_merge

Examples

Run this code
## Create a new workbook and add a worksheet
wb <- wb_workbook("Creator of workbook")
wb$add_worksheet(sheet = "My first worksheet")

## Save workbook to working directory
# \donttest{
wb_save(wb, path = temp_xlsx(), overwrite = TRUE)
# }

Run the code above in your browser using DataLab