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 service.

Note: this service must be manually activated for the package by visiting

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

add_codecov_badge(organisation = NULL, quiet = FALSE)



A character of length 1. The name of the GitHub organisation to host the package. If NULL (default) the GitHub account will be used.


A logical value. If TRUE messages are deleted. Default is FALSE.


A badge as a markdown expression.


if (FALSE) {