Software Citation Tools

A collection of functions to extract citation information from 'R' packages and to deal with files in 'citation file format' (< https://citation-file-format.github.io/>), extending the functionality already provided by the citation() function in the 'utils' package.


Software Citation Tools

R package citation, version 0.12.2

CRAN status DOI R build status codecov r-universe

Purpose and Functionality

A collection of functions to extract citation information from 'R' packages and to deal with files in 'citation file format' (https://citation-file-format.github.io/), extending the functionality already provided by the citation() function in the 'utils' package.

Installation

For installation of the most recent package version an additional repository has to be added in R:

options(repos = c(CRAN = "@CRAN@", pik = "https://rse.pik-potsdam.de/r/packages"))

The additional repository can be made available permanently by adding the line above to a file called .Rprofile stored in the home folder of your system (Sys.glob("~") in R returns the home directory).

After that the most recent version of the package can be installed using install.packages:

install.packages("citation")

Package updates can be installed using update.packages (make sure that the additional repository has been added before running that command):

update.packages()

Questions / Problems

In case of questions / problems please contact Jan Philipp Dietrich [email protected].

Citation

To cite package citation in publications use:

Dietrich J, Leoncio W (2025). "citation: Software Citation Tools." doi:10.5281/zenodo.3813429 https://doi.org/10.5281/zenodo.3813429, Version: 0.12.2, https://github.com/pik-piam/citation.

A BibTeX entry for LaTeX users is

@Misc{,
 title = {citation: Software Citation Tools},
 author = {Jan Philipp Dietrich and Waldir Leoncio},
 doi = {10.5281/zenodo.3813429},
 date = {2025-12-04},
 year = {2025},
 url = {https://github.com/pik-piam/citation},
 note = {Version: 0.12.2},
}

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("citation")

0.12.2 by Jan Philipp Dietrich, 10 months ago


https://github.com/pik-piam/citation, https://doi.org/10.5281/zenodo.3813429


Report a bug at https://github.com/pik-piam/citation/issues


Browse source code at https://github.com/cran/citation


Authors: Jan Philipp Dietrich [aut, cre] (affiliation: Potsdam Institute for Climate Impact Research , ORCID: , Waldir Leoncio [aut] (affiliation: University of Oslo)


Documentation:   PDF Manual  


BSD_2_clause + file LICENSE license


Imports desc, jsonlite, utils, withr, yaml

Suggests covr, testthat


Imported by goxygen.


See at CRAN