Learn R Programming

citation (version 0.8.2)

r2cff: Convert from R DESCRIPTION into CFF

Description

Converts an R package DESCRIPTION file to Citation File Format

Usage

r2cff(descriptionFile = "DESCRIPTION", export = FALSE)

Value

The package's DESCRIPTION file converted to CFF

Arguments

descriptionFile

either the path to a DESCIPTION file, the path to a main folder of a package (containing a DESCRIPTION file) or the name of a package.

export

if `TRUE`, the output is saved as CITATION.cff in the folder of the DESCRIPTION file.

Author

Waldir Leoncio, Jan Philipp Dietrich

Details

CFF is a standard format for the citation of software proposed by Stephan Druskat et. al. (see references below). CFF-compliant files are stored in files named CITATION.cff.

CITATION.cff files are plain text files with human- and machine-readable citation information for software. Code developers can include them in their repositories to let others know how to correctly cite their software.

References

Druskat S., Spaaks J.H., Chue Hong N., Haines R., Baker J. (2019). Citation File Format (CFF) (version 1.1.0). DOI: http://doi.org/10.5281/zenodo.1003149

https://www.software.ac.uk/blog/2017-12-12-standard-format-citation-files https://citation-file-format.github.io https://github.com/citation-file-format/citation-file-format/blob/master/README.md https://citation-file-format.github.io/cff-initializer-javascript/

See Also

cff2r

Examples

Run this code
r2cff("citation")

Run the code above in your browser using DataLab