r2cff | R Documentation |
Converts an R package DESCRIPTION file to Citation File Format
r2cff(descriptionFile = "DESCRIPTION", export = FALSE)
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. |
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.
The package's DESCRIPTION file converted to CFF
Waldir Leoncio, Jan Philipp Dietrich
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/
cff2r
r2cff("citation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.