add_github_actions_check_badge: Add a R CMD Check badge

View source: R/add_github_actions_check_badge.R

add_github_actions_check_badgeR Documentation

Add a R CMD Check badge

Description

This function adds a R CMD Check badge to the README.Rmd. This function must be run after add_github_actions_check() which will setup GitHub Actions to check and test the package.

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.

Usage

add_github_actions_check_badge(organisation = NULL, quiet = FALSE)

Arguments

organisation

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

quiet

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

Value

A badge as a markdown expression.

See Also

Other adding badges: add_codecov_badge(), add_cran_badge(), add_dependencies_badge(), add_github_actions_codecov_badge(), add_github_actions_pkgdown_badge(), add_license_badge(), add_lifecycle_badge(), add_repostatus_badge()

Examples

## Not run: 
add_github_actions_check_badge()

## End(Not run)

rcompendium documentation built on Oct. 26, 2023, 5:08 p.m.