These property functions modify or return the italics attribute of a hf_line
object. The italic attribute takes on a logical value of TRUE or FALSE, where
TRUE italicizes the text of the line.
italic(x, ...) italic(x) <- value set_italic(x, value)
x | A |
---|---|
... | Additonal arguments passed to method dispatch |
value | A logical vector to set the value of the bold attribute |
For italic()
, the italic attribute of the supplied
hf_line
. Fot `italic<-()`
and set_italic()
the
modified object.
library(huxtable) ht <- huxtable( column1 = 1:5, column2 = letters[1:5] ) rtf <- rtf_doc(ht, list(hf_line("aTitle"))) pharmaRTF::italic(rtf$titles[[1]])#> [1] FALSE# Returns FALSE pharmaRTF::italic(rtf$titles[[1]]) <- TRUE # Sets italic to TRUE