More info: http://r-pkgs.had.co.nz/vignettes.html
Pandoc: http://pandoc.org/installing.html
# If using Homebrew
brew install pandoc
R Packages
install.packages(c('devtools', 'rmarkdown', 'knitr'))
Add placeholder file:
devtools::use_vignette("my-vignette")
Edit Rmd files
Preview ``` devtools::build_vignettes() ````
# Make sure setwd() is correct set
devtools::build()
# Note that since I'm copying overview.Rnw, I'm using the same basename
devtools::use_vignette('overview')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.