bold: Return or set bold

Description Usage Arguments Value Examples

View source: R/properties.R

Description

These property functions modify or return the bold attribute of a hf_line object.

Usage

1
2
3
4
5
bold(x, ...)

bold(x) <- value

set_bold(x, value)

Arguments

x

A hf_line object

...

Additonal arguments passed to method dispatch

value

A logical vector to set the value of the bold attribute

Value

For bold(), the bold attribute of the supplied hf_line object. For `bold<-`() and set_bold(), the modified object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library(huxtable)
ht <- huxtable(
  column1 = 1:5,
  column2 = letters[1:5]
)
rtf <- rtf_doc(ht, list(hf_line("aTitle")))

pharmaRTF::bold(rtf$titles[[1]])
# Returns FALSE

pharmaRTF::bold(rtf$titles[[1]]) <- TRUE
# Sets bold to TRUE

pharmaRTF documentation built on Sept. 28, 2021, 5:08 p.m.