# set global chunk options library(knitr) opts_chunk$set(cache=FALSE) library(knitcitations); library(reports) cleanbib() options("citation_format" = "pandoc")
To enable Markdown vignettes in an R package, you need to
*.Rmd
files under the inst/doc
or vignettes
directoryVignetteBuilder: knitr
to the DESCRIPTION
file\VignetteEngine{knitr}
in the Rmd
files (inside HTML comments)You can use your own CSS file instead of the built-in style in the markdown package -- just set the css in the yaml.
#write.bibtex(file="references.bib")
# R compiles all vignettes in the same session, which can be bad rm(list = ls(all = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.