
Retrieving named cell styles
existsCellStyle-methods.RdChecks whether a named cell style exists in a workbook.
Details
Checks whether the cellstyle with the specified name exists.
Author
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
Examples
if (FALSE) { # \dontrun{
# Load workbook (create if not existing)
wb <- loadWorkbook("existsCellStyle.xlsx", create = TRUE)
# Cell style 'MyStyle' does not exist yet
stopifnot(!existsCellStyle(wb, "MyStyle"))
# Create the style "MyStyle"
createCellStyle(wb, "MyStyle")
# And now it is here
stopifnot(existsCellStyle(wb, "MyStyle"))
# clean up
file.remove("existsCellStyle.xlsx")
} # }