Learn R Programming

pacman (version 0.5.1)

p_citation: Package Citation

Description

Generate citation for a package.

Usage

p_citation(package = "r", copy2clip = interactive(),
  tex = getOption("pac_tex"), ...)

p_cite(package = "r", copy2clip = interactive(), tex = getOption("pac_tex"), ...)

Arguments

package

Name of the package you want a citation for.

copy2clip

logical. If TRUE attempts to copy the output to the clipboard.

tex

logical. If TRUE only the BibTex version of the citation is copied to the clipboard. If FALSE the standard citation is copied to the clipboard. If NA both are copied to the clipboard. Default allows the user to set a "pac_tex" in his/her .Rprofile.

Additional inputs to citation

See Also

citation

Examples

Run this code
# NOT RUN {
p_citation()
p_cite(pacman)
p_citation(pacman, tex = FALSE)
p_citation(tex = FALSE)
p_cite(knitr)
# }

Run the code above in your browser using DataLab