Rgitbook uses the knitcitations (Boettiger, 2014) to manage citations. You can use the citep and citet functions using the knitr inline syntax. For example:
The devtools ` r citep(bib['devtools']) ` package makes it easy to develop R packages.
The Rgitbook will make a knitcitations bibliography object named bib available to all .Rmd files being processed. This file contains all the citations in the references.bib BibTeX file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.