View source: R/text-decoration.R
| text_decoration | R Documentation |
The text_dectoration() function adjusts how text is decorated within a tag
element.
text_decoration(x, decoration)
x |
A tag element or .style pronoun. |
decoration |
A character string specifying a decoration. One of,
|
An object of the same type as x.
Other text utilities:
text_alignment(),
text_break(),
text_color(),
text_height(),
text_selection(),
text_style(),
text_transform(),
text_weight(),
text_wrap()
library(htmltools)
div(
.style %>%
text_decoration("strike"),
"TODO: buy milk"
)
div(
.style %>%
text_emphasis(theme_danger()) %>%
text_decoration("underline"),
"Red AND underlined!"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.