saveWorkbook

0th

Percentile

save Workbook to file

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 TRUE, overwrite any existing file.

returnValue

If TRUE, returns TRUE in case of a success, else FALSE. If flag is FALSE, then no return value is returned.

See Also

createWorkbook

addWorksheet

loadWorkbook

writeData

writeDataTable

Aliases
  • saveWorkbook
Examples
# NOT RUN {
## 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)
# }
Documentation reproduced from package openxlsx, version 4.2.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.