Shows the version number of the package on CRAN, or “not published” if the package is not published on CRAN. See https://r-pkg.org/services#badges One of the metacran badges.

badge_cran(packagename)

Arguments

packagename

the name of your package

Value

markdown

See also

Other badges: badge_codecov, badge_cran_ago, badge_cran_date, badge_cran_version_ago, badge_cran_version_release, badge_github_fork, badge_github_star, badge_last_change_static, badge_last_change, badge_license, badge_minimal_r_version, badge_packageversion, badge_projectstatus, badge_rank, badge_rdocumentation, badge_thanks_md, badge_travis

Examples

badge_cran("dplyr")
#> [1] "[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/dplyr)](https://cran.r-project.org/package=dplyr)"