Create a new Workbook object
createWorkbook(
creator = ifelse(.Platform$OS.type == "windows", Sys.getenv("USERNAME"),
Sys.getenv("USER")),
title = NULL,
subject = NULL,
category = NULL
)
Creator of the workbook (your name). Defaults to login username
Workbook properties title
Workbook properties subject
Workbook properties category
Workbook object
# NOT RUN {
## Create a new workbook
wb <- createWorkbook()
## Save workbook to working directory
# }
# NOT RUN {
saveWorkbook(wb, file = "createWorkbookExample.xlsx", overwrite = TRUE)
# }
# NOT RUN {
## Set Workbook properties
wb <- createWorkbook(
creator = "Me",
title = "title here",
subject = "this & that",
category = "something"
)
# }
Run the code above in your browser using DataLab