Description Usage Arguments Value Examples
hlt_*
returns an string of R code with formatting wrappers (currently only html)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
.string |
A string object |
pattern |
A regular expression to match |
code |
Should this string be displayed in R code format? |
... |
Formatting options, passed to |
hlt_color |
Color to highlight code with. Defaults to |
A string with formatting wrappers.
1 2 3 4 5 6 7 | code_string <- "foo <- mean(1:10, na.rm = TRUE)"
code_string %>% hlt_args()
code_string %>% hlt_funs(color = "red")
code_string %>% hlt_regexp("foo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.