Learn R Programming

knitcitations (version 0.3-3)

bibliography: Generate the bibliography

Description

Generate the bibliography

Usage

bibliography(style = "textVersion", .bibstyle = "JSS",
    sort = FALSE, bibtex = getOption("bibtex_data"), ...)

Arguments

style
formatting style to print bibliography (default is plain text). Can be text, bibtex, html, textVersion, R, citation, or other formats defined forthe print bibentry class, see ?print.bibentry for details.
sort
logical indicating if bibliography should be sorted alphabetically, defaults to FALSE
bibtex
logical, use bibtex data structure internally? (internal option only)
.bibstyle
the bibstyle function call or string. Defaults to journal of statistical software (JSS). See bibstyle.
...
additional arguments passed to print.bibentry, see bibentry

Value

  • a list of bibentries, providing a bibliography of what's been cited

Details

Formating of the return data is handled by bibentry printing methods.

Examples

Run this code
bib <- c(citation("knitr"), citation("knitr"), citation("bibtex"), citation("bibtex"), citation("knitr"), citation("knitcitations"), citation("bibtex"))
citep(bib)
bibliography()

Run the code above in your browser using DataLab