Learn R Programming

knitcitations (version 1.0.12)

bibliography: Generate the bibliography

Description

Generate the bibliography

Usage

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

Arguments

style

see RefManageR::PrintBibliography

...

additional arguments passed to PrintBibliography,

Value

a list of works cited

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.

Examples

Run this code
# NOT RUN {
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()

# }

Run the code above in your browser using DataLab