saveWorkbook {openxlsx} | R Documentation |
save Workbook to file
Description
save a Workbook object to file
Usage
saveWorkbook(wb, file, overwrite = FALSE, returnValue = FALSE)
Arguments
wb |
A Workbook object to write to file |
file |
A character string naming an xlsx file |
overwrite |
If |
returnValue |
If |
Author(s)
Alexander Walker, Philipp Schauberger
See Also
Examples
## Create a new workbook and add a worksheet
wb <- createWorkbook("Creator of workbook")
addWorksheet(wb, sheetName = "My first worksheet")
## Save workbook to working directory
## Not run:
saveWorkbook(wb, file = "saveWorkbookExample.xlsx", overwrite = TRUE)
## End(Not run)
[Package openxlsx version 4.2.6.1 Index]