Learn R Programming

openxlsx2 (version 0.7)

wb_add_style: add style to workbook

Description

wb wrapper to add style to workbook

Usage

wb_add_style(wb, style = NULL, style_name = NULL)

Arguments

wb

workbook

style

style xml character

style_name

style name used optional argument

See Also

create_border(), create_cell_style(), create_dxfs_style(), create_fill(), create_font(), create_numfmt()

Examples

Run this code
yellow_f <- wb_color(hex = "FF9C6500")
yellow_b <- wb_color(hex = "FFFFEB9C")

yellow <- create_dxfs_style(font_color = yellow_f, bgFill = yellow_b)
wb <- wb_workbook() %>% wb_add_style(yellow)

Run the code above in your browser using DataLab