View source: R/lazy.text.format.R
lazy.text.format | R Documentation |
Applies italic, bold, or underlining to a piece of text.
May be used within lazy.text
to add emphasis when the entire
paragraph does not need to be formatted
lazy.text.format(
text,
italic = FALSE,
bold = FALSE,
underline = FALSE,
translate = TRUE
)
text |
Text to be formatted |
italic |
Logical. Specifies if text should be italic |
bold |
Logical. Specifies if text should be bold |
underline |
Logical. Specifies if text should be underlined |
translate |
Logical. Specifies if text should be passed through
|
This function differs from lazy.text
in that
lazy.text
produces a paragraph of formatted text while
lazy.text.format
produces smaller blocks. This allows for
smaller bits of text to be formatted for emphasis
(see the last example below).
Benjamin Nutter
lazy.text.format("This is the text")
lazy.text.format("This is the text", italic=TRUE)
lazy.text.format("This is the text", bold=TRUE)
lazy.text.format("This is the text", italic=TRUE, bold=TRUE)
lazy.text("The percentage of defective light bulbs in this sample was ",
lazy.text.format("30%", italic=TRUE),
". Clearly, this is unacceptable.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.