library(knitr) opts_chunk$set(cache.path='~/.vignette_cache/') library(knitcitations) cite_options(citation_format = 'pandoc') P <- rprojroot::find_rstudio_root_file
Your text
A citation: r citep('10.1098/rspb.2011.1417')
write.bibtex(file = P("vignettes/references.bib"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.