Learn R Programming

openxlsx (version 4.2.7.1)

getBaseFont: Return the workbook default font

Description

Return the workbook default font

Returns the base font used in the workbook.

Usage

getBaseFont(wb)

Arguments

wb

A workbook object

Author

Alexander Walker

Examples

Run this code
## create a workbook
wb <- createWorkbook()
getBaseFont(wb)

## modify base font to size 10 Arial Narrow in red
modifyBaseFont(wb, fontSize = 10, fontColour = "#FF0000", fontName = "Arial Narrow")

getBaseFont(wb)

Run the code above in your browser using DataLab