Learn R Programming

knitcitations (version 0.6-2)

bibliography: Generate the bibliography

Description

Generate the bibliography

Usage

bibliography(style = "markdown", .bibstyle = "JSS",
  ordering = c("authors", "year", "title", "journal", "volume", "number",
  "pages", "doi", "url"), sort = FALSE, bibtex = get("bibtex_data", envir =
  knitcitations_options), bulleted = TRUE, ...)

Arguments

style
formatting style to print bibliography (default is plain text). Can be text, bibtex, html, textVersion, R, citation, or other formats defined for the print bibentry class, see ?print.bibentry for details.
ordering
a character list of the order in which information should be printed (e.g. c("author", "year", "title", "journal", "volume", "number", "pages", "doi", "uri")) see details. Works only for rdfa and markdown formats at the moment. Other styles are formatte
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.
bulleted
logical. If TRUE, for style = "html", the bibliography will print as a bulleted list using the li HTML tags.
...
additional arguments passed to print.bibentry, see bibentry or to PrintBibliography (for text, textVersion formats)

Value

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

Details

The markdown and rdfa print formats can take the argument `ordering`. A character string provides the order in which elements should be returned. Elements not specified are omitted from the return entirely. Even if both DOI or URI (usually the URL) are given, method will return the URL only if the DOI is absent/unavailable.