save a Workbook object to file
saveWorkbook(wb, file, overwrite = FALSE, returnValue = FALSE)
A Workbook object to write to file
A character string naming an xlsx file
If TRUE
, overwrite any existing file.
If TRUE
, returns TRUE
in case of a success, else FALSE
.
If flag is FALSE
, then no return value is returned.
## Create a new workbook and add a worksheet
wb <- createWorkbook("Creator of workbook")
addWorksheet(wb, sheetName = "My first worksheet")
## Save workbook to working directory
if (FALSE) {
saveWorkbook(wb, file = "saveWorkbookExample.xlsx", overwrite = TRUE)
}