Apply style to worksheet based on one or more excel-style cell ranges
Source:R/cells_stylize.R
cells_stylize.RdApply style to worksheet based on one or more excel-style cell ranges
Arguments
- wb
openxlsx workbook object
- sheet
character corresponding to sheet name of openxlsx workbook object
wb.- style
openxlsxcell style, created withopenxlsx::createStyle(). This can include text size, bolding or italics, text wrapping, foreground color, text color, etc. See?openxlsx::createStylefor details.- block.ranges
One or more cell ranges specified in excel format (e.g.
c("A1:D5, "B6", "A8:D8"))- stack
Should style be appended to existing styles (
TRUE) or replace existing styles (FALSE). Defaults toTRUE.