library(knitcitations)
## (requires internet connection)
citep("10.3998/3336451.0009.101")
## Read in the bibtex information for some packages:
knitr <- citation("knitr")
knitcitations <- citation("knitcitations")
# generate the parentetical citation for these:
citep(list(knitr,knitcitations))
# generate the full bibliography:
bibliography()
## Assign a citation key to a doi and then use it later:
citep(c(Halpern2006="10.1111/j.1461-0248.2005.00827.x"))
citep("Halpern2006")
Run the code above in your browser using DataLab