Save Workbook to file

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

Value

the wbWorkbook object, invisibly

Examples

## 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)
# }