Set citation options
yml-cite.Rd.yml_cite_setsets the citation options in_projr.yml`.
The options are:
codemeta: whether to generate a codemeta.json file.
cff: whether to generate a CITATION.cff file. Indexable by GitHub and Zenodo.
inst-citation: whether to generate a CITATION file in the inst/ directory. If the project is installed as an
Rpackage, then citation data can be generated bycitation(package = <project_name>).
The default is to leave all the settings unchanged.
If these settings are not setting in _projr.yml,
then the default is to not generate any citation files.
.yml_cite_set_default sets all citation options to default (FALSE`).
Usage
projr_yml_cite_set(
all = NULL,
codemeta = NULL,
cff = NULL,
inst_citation = NULL,
simplify_identical = TRUE,
simplify_default = TRUE,
profile = "default"
)
projr_yml_cite_set_default(
profile = "default",
simplify_identical = TRUE,
simplify_default = TRUE
)Arguments
- all
logical. Whether to set all the options to
TRUEorFALSE. IfNULL, thencodemeta,cffandinst_citationare used. Default isNULL.- codemeta
logical. Whether to generate a codemeta.json file. If
NULL, then setting is not changed.- cff
logical. Whether to generate a CITATION.cff file. If
NULL, then setting is not changed.- inst_citation
logical. Whether to generate a CITATION file in the inst/ directory. If
NULL, then setting is not changed.- simplify_identical
logical. If
TRUE, then if all the settings are the same then onlycite: TRUEorcite: FALSEis written to_projr.yml. Default isTRUE.- simplify_default
logical. If
TRUE, then if all the settings are the same and equl to the default (FALSE), then the settings are not recorded in theprojrconfiguration file (as the default will be equal to it).- profile
character. The profile to write to. Default is "default", in which case it writes to
_projr.yml.