existsCellStyle-methods

0th

Percentile

Retrieving named cell styles

Checks whether a named cell style exists in a '>workbook.

Keywords
methods, utilities
Usage
# S4 method for workbook
existsCellStyle(object,name)
Arguments
object

The '>workbook to use

name

The name of the '>cellstyle to check

Details

Checks whether the '>cellstyle with the specified name exists.

See Also

'>workbook, '>cellstyle, setCellStyle, createCellStyle, getOrCreateCellStyle

Aliases
  • existsCellStyle
  • existsCellStyle-methods
  • existsCellStyle,workbook-method
Examples
# 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"))
# }
Documentation reproduced from package XLConnect, version 0.2-14, License: GPL-3

Community examples

Looks like there are no examples yet.