style_catalogue_add_openxlsx_style: Manually add an openxlsx s4 style the style catalogue

Description Usage Arguments Examples

Description

Manually add an openxlsx s4 style the style catalogue

Usage

1
2
style_catalogue_add_openxlsx_style(tab, style_string, openxlsx_style,
  row_height = NULL)

Arguments

tab

a table object

style_string

the name (key) in the tab$style_catalogue

openxlsx_style

an openxlsx s4 style

row_height

the height of the row. optional.

Examples

1
2
3
4
5
6
tab <- xltabr::initialise()
s4style <- openxlsx::createStyle(fontName = "Courier",
                                 fontColour = "#80a9ed",
                                 fontSize = 20,
                                 numFmt =  "£    #,###")
tab <- style_catalogue_add_openxlsx_style(tab, "custom", s4style, row_height = 40)

moj-analytical-services/xltabr documentation built on May 9, 2019, 9:59 p.m.