get or set worksheet names
# S3 method for class 'Workbook'
names(x)
# S3 method for class 'Workbook'
names(x) <- value
wb <- createWorkbook()
addWorksheet(wb, "S1")
addWorksheet(wb, "S2")
addWorksheet(wb, "S3")
names(wb)
#> [1] "S1" "S2" "S3"
names(wb)[[2]] <- "S2a"
names(wb)
#> [1] "S1" "S2a" "S3"
names(wb) <- paste("Sheet", 1:3)