p_citation: Package Citation

Description Usage Arguments See Also Examples

View source: R/p_citation.R

Description

Generate citation for a package.

Usage

1
2
3
4
5
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

1
2
3
4
5
6
7
8
## Not run: 
p_citation()
p_cite(pacman)
p_citation(pacman, tex = FALSE)
p_citation(tex = FALSE)
p_cite(knitr)

## End(Not run)

Example output

To cite R in publications use:

  R Core Team (2018). R: A language and environment for statistical
  computing. R Foundation for Statistical Computing, Vienna, Austria.
  URL https://www.R-project.org/.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2018},
    url = {https://www.R-project.org/},
  }

We have invested a lot of time and effort in creating R, please cite it
when using it for data analysis. See also 'citation("pkgname")' for
citing R packages.


To cite pacman in publications, please use:

  Rinker, T. W. & Kurkiewicz, D. (2017). pacman: Package Management for
  R. version 0.4.6. University at Buffalo. Buffalo, New York.
  http://github.com/trinker/pacman

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {{pacman}: {P}ackage Management for {R}},
    author = {Tyler W. Rinker and Dason Kurkiewicz},
    organization = {University at Buffalo/SUNY},
    address = {Buffalo, New York},
    note = {version 0.4.6},
    year = {2017},
    url = {http://github.com/trinker/pacman},
  }


To cite pacman in publications, please use:

  Rinker, T. W. & Kurkiewicz, D. (2017). pacman: Package Management for
  R. version 0.4.6. University at Buffalo. Buffalo, New York.
  http://github.com/trinker/pacman

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {{pacman}: {P}ackage Management for {R}},
    author = {Tyler W. Rinker and Dason Kurkiewicz},
    organization = {University at Buffalo/SUNY},
    address = {Buffalo, New York},
    note = {version 0.4.6},
    year = {2017},
    url = {http://github.com/trinker/pacman},
  }


To cite R in publications use:

  R Core Team (2018). R: A language and environment for statistical
  computing. R Foundation for Statistical Computing, Vienna, Austria.
  URL https://www.R-project.org/.

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2018},
    url = {https://www.R-project.org/},
  }

We have invested a lot of time and effort in creating R, please cite it
when using it for data analysis. See also 'citation("pkgname")' for
citing R packages.


To cite the 'knitr' package in publications use:

  Yihui Xie (2019). knitr: A General-Purpose Package for Dynamic Report
  Generation in R. R package version 1.22.

  Yihui Xie (2015) Dynamic Documents with R and knitr. 2nd edition.
  Chapman and Hall/CRC. ISBN 978-1498716963

  Yihui Xie (2014) knitr: A Comprehensive Tool for Reproducible
  Research in R. In Victoria Stodden, Friedrich Leisch and Roger D.
  Peng, editors, Implementing Reproducible Computational Research.
  Chapman and Hall/CRC. ISBN 978-1466561595

To see these entries in BibTeX format, use 'print(<citation>,
bibtex=TRUE)', 'toBibtex(.)', or set
'options(citation.bibtex.max=999)'.

pacman documentation built on May 2, 2019, 1:08 p.m.