saveWorkbook: save Workbook to file

Description Usage Arguments Author(s) See Also Examples

View source: R/wrappers.R

Description

save a Workbook object to file

Usage

1
saveWorkbook(wb, file, overwrite = 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.

Author(s)

Alexander Walker

See Also

createWorkbook

addWorksheet

loadWorkbook

writeData

writeDataTable

Examples

1
2
3
4
5
6
## Create a new workbook and add a worksheet
wb <- createWorkbook("Creator of workbook")
addWorksheet(wb, sheetName = "My first worksheet")

## Save workbook to working directory
saveWorkbook(wb, file = "saveWorkbookExample.xlsx", overwrite = TRUE) 

openxlsx documentation built on May 30, 2017, 5:37 a.m.