lazy.citation: Add R or R Package Citation

Description Usage Arguments Details Author(s) Examples

View source: R/lazy.citation.R

Description

Generates code for the citation of R or an R package.

Usage

1
2
lazy.citation(pkg = NULL, author = TRUE, title = TRUE, org = TRUE,
  address = TRUE, volume = TRUE, year = TRUE, note = TRUE)

Arguments

pkg

a character(1) vector giving the name of a package. If NULL, a citation for R is produced.

author

Include author name

title

Include title of package

org

Include organization name

address

Include address

volume

Include volume

year

include year of publication

note

include the note on the citation.

Details

Not every option is populated in every package. Future improvements might include automatic detection of NULL fields, but for now, observing the output with all the options set to TRUE will tell you which ones are empty.

Author(s)

Benjamin Nutter

Examples

1
2
lazy.citation()
lazy.citation(pkg="lazyWeave", org=FALSE, address=FALSE, volume=FALSE)

nutterb/lazyWeave documentation built on May 24, 2019, 10:52 a.m.