Learn R Programming

knitcitations (version 0.4-7)

cite: Add a citation (internal for citet and citep)

Description

Add a citation (internal for citet and citep)

Usage

cite(x,
    bibtex = get("bibtex_data", envir = knitcitations_options),
    format_inline_fn = format_authoryear_p)

Arguments

x
a doi or list of dois, or a bibentry (or list of bibentries)
bibtex
internal logical indicating if we use a cache or external bibtex file
format_inline_fn
a function which will create the inline citation format (stored with the entry to avoid non-unique citation styles, e.g. Boettiger 2012a, Boettiger 2012b.)

Value

  • a parenthetical inline citation

Details

Stores the full citation in a "works_cited" list, which can be printed with bibliography

Examples

Run this code
citep("10.3998/3336451.0009.101")

Run the code above in your browser using DataLab