View source: R/update_citation.R
| update_citation | R Documentation |
Create a citation *.cff file for the dataset from a given DOI (Digital Object Identifier). When a DOI is supplied, it adds the DOI badge to the README RMarkdown file and re-builds the README.md and pkgdown website if they exist. Before a release exists, call it without arguments to generate the citation files without a DOI or badge.
update_citation(doi = NULL, build = TRUE)
doi |
DOI (Digital Object Identifier), e.g., 10.5281/zenodo.11185699. |
build |
Logical. Rebuild README.md and the pkgdown site after the
citation files change? Defaults to |
NULL. A citation .cff file is written under the root directory.
Before: setup_website(). Run again with the DOI after the Zenodo release; update_metadata() then picks the DOI up.
Other metadata functions:
update_description(),
update_metadata()
## Not run:
update_citation(doi = "10.5281/zenodo.11185699")
# Regenerate the citation files without rebuilding README.md and the site
update_citation(build = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.