Place a badge with the version of your package which is automatically read from your description file.

badge_packageversion(chunk = TRUE)

Arguments

chunk

this argument places a RMarkdown chunk

Value

Rmarkdown

See also

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

Examples

badge_packageversion()
#> [1] "```{r, echo = FALSE}" #> [2] "version <- as.vector(read.dcf('DESCRIPTION')[, 'Version'])" #> [3] "version <- gsub('-', '.', version)" #> [4] "```" #> [5] "[![packageversion](https://img.shields.io/badge/Package%20version-`r version`-orange.svg?style=flat-square)](commits/master)"