use_highlight <- function(){ require(knitr) opts_knit$set(use.highlight = TRUE) opts_knit$set(out.format = 'html') opts_chunk$set(highlight = TRUE) render_html() } # use_highlight()
--- .bullets .incremental .smaller
--- .full
--- .subsection
library(ggplot2) qplot(wt, mpg, data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.