Description Usage Arguments Value Examples
flair_lines
returns a string with formatting wrappers(currently only
html), or applies the formatting to the source elements of a
with_flair
object.
1 2 3 4 | 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.
1 2 | 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.