PackageCitation: A function to get the citations of packages

View source: R/PackageCitation.R

PackageCitationR Documentation

A function to get the citations of packages

Description

This function outputs the package citation information of a package or all packages loaded in the current session. It is based on a post by Carl Boettinger referenced below.

Usage

PackageCitation(packages, bibtex = FALSE, file = NULL)

Arguments

packages

Vector of package names we want to cite. If "all" display all packages loaded.

bibtex

If TRUE display bibtex citation only.

file

If specified is a string giving the file path and name.

Value

Returns a list of the citation information and outputs a bibtex file if requested.

Author(s)

Richard T Gray, Rgray@kirby.unsw.edu.au

References

http://www.carlboettiger.info/2012/03/20/citing-r-packages.html

Examples

PackageCitation("all")


leftygray/LeftysRpkg documentation built on Feb. 11, 2024, 5:13 p.m.