flair_lines | R Documentation |
flair_lines
returns a string with formatting wrappers(currently only
html), or applies the formatting to the source elements of a
decorated
object.
flair_lines(x, lines) ## Default S3 method: flair_lines(x, lines)
x |
A string or |
lines |
Integer vector indicating which lines to apply the flair styling to. |
A string with formatting wrappers.
code_string <- "x <- mean(1:10, na.rm = TRUE) sqrt(x)" %>% flair_lines(2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.