existsCellStyle-methods | R Documentation |
Checks whether a named cell style exists in a workbook
.
## S4 method for signature 'workbook' existsCellStyle(object,name)
object |
The |
name |
The name of the |
Checks whether the cellstyle
with the specified name
exists.
Martin Studer
Mirai Solutions GmbH https://mirai-solutions.ch
workbook
, cellstyle
, setCellStyle
,
createCellStyle
, getOrCreateCellStyle
## Not run: # 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") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.