View source: R/add_codecov_badge.R
| add_codecov_badge | R Documentation |
This function adds a Code coverage badge to the README.Rmd, i.e. the
percentage of code cover by units tests. This percentage is computed by
the codecov.io service.
Note: this service must be manually activated for the package by visiting https://about.codecov.io/.
Make sure that 1) a README.Rmd file exists at the project root and 2) it
contains a block starting with the line <!-- badges: start --> and ending
with the line <!-- badges: end -->.
Don't forget to re-render the README.md.
add_codecov_badge(organisation = NULL, quiet = FALSE)
organisation |
A character of length 1. The name of the GitHub
organisation to host the package. If |
quiet |
A logical value. If |
A badge as a markdown expression.
Other adding badges:
add_cran_badge(),
add_dependencies_badge(),
add_github_actions_check_badge(),
add_github_actions_codecov_badge(),
add_github_actions_pkgdown_badge(),
add_license_badge(),
add_lifecycle_badge(),
add_repostatus_badge()
## Not run:
add_codecov_badge()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.