Description Usage Arguments Details Author(s) Examples
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
1 2 |
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
1 2 3 4 5 6 7 8 | 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 lightbulbs 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.