get_cran_doi_badge.Rd
Build a URL string that generates a shields.io metadata badge to display your CRAN package's DOI. For convenience, this function allows you to embed the URL in Markdown with a link and copies this to the clipboard for use in a README or elsewhere.
get_cran_doi_badge(package_name, ...)
Single character string. Must be a package named on CRAN.
Optional arguments passed to get_badge
.
A Markdown text string.
get_cran_doi_badge(
package_name = "datapasta",
browser_preview = FALSE,
to_clipboard = FALSE
)
#> [1] "[![](https://img.shields.io/badge/DOI-10.32614/CRAN.package.datapasta-1f57b6?style=flat&link=https://doi.org/10.32614/CRAN.package.datapasta)](https://doi.org/10.32614/CRAN.package.datapasta)"