bibliography: Generate the bibliography

Description Usage Arguments Details Value Examples

View source: R/bibliography.R

Description

Generate the bibliography

Usage

1
bibliography(style = "text", ...)

Arguments

style

see RefManageR::PrintBibliography

...

additional arguments passed to PrintBibliography,

Details

For non-trivial bibliographies, knitcitations recommends authors use pandoc format, and allow pandoc to generate the references list rather than rely on the bibliography() function. Pandoc has rich CSL support using any provided CSL file (see Pandoc documentation for details) and is integrated into recent version of RStudio.

Value

a list of works cited

Examples

1
2
3
4
5
6
citet(citation("httr"))
citet(citation("digest"))
bibliography()
bibliography(sorting = 'ynt') # sort by year, then name, title
bibliography(sorting = 'ydnt') # sort by year, descending, then name, title
cleanbib()

cboettig/knitcitations documentation built on Jan. 12, 2021, 10:24 a.m.