Learn R Programming

grateful (version 0.0.2)

get_citations: Get citations for packages

Description

Get citations for packages

Usage

get_citations(pkgs, filename = "pkg-refs.bib", out.dir = getwd())

Arguments

pkgs

Character vector of package names, e.g. as produced by scan_packages.

filename

Optional. Name of BibTeX file containing packages references.

out.dir

Directory to save the BibTeX file with the references. Defaults to working directory.

Value

Nothing by default. If assigned a name, a list with package citations in BibTeX format. Optionally, a file with references in BibTeX format.

Examples

Run this code
# NOT RUN {
library(grateful)
pkgs <- scan_packages()
cites <- get_citations(pkgs)
# }

Run the code above in your browser using DataLab