Create a new Workbook object
createWorkbook(
creator = ifelse(.Platform$OS.type == "windows", Sys.getenv("USERNAME"),
Sys.getenv("USER")),
title = NULL,
subject = NULL,
category = NULL
)
Workbook object
## Create a new workbook
wb <- createWorkbook()
## Save workbook to working directory
if (FALSE) { # \dontrun{
saveWorkbook(wb, file = "createWorkbookExample.xlsx", overwrite = TRUE)
} # }
## Set Workbook properties
wb <- createWorkbook(
creator = "Me",
title = "title here",
subject = "this & that",
category = "something"
)