library(tufte) # invalidate cache when the tufte version changes knitr::opts_chunk$set(tidy = FALSE, cache.extra = packageVersion('tufte')) options(htmltools.dir.version = FALSE)
HTML? r knitr::is_html_output()
latex? r knitr::is_latex_output()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.