badges: README badges

Description Usage Arguments Details See Also Examples

Description

These helpers produce the markdown text you need in your README to include badges that report information, such as the CRAN version or test coverage, and link out to relevant external resources. To add badges automatically ensure your badge block starts with a line containing only <!-- badges: start --> and ends with a line containing only <!-- badges: end -->.

Usage

1
2
3
4
5
6
7
8
9
use_badge(badge_name, href, src)

use_cran_badge()

use_bioc_badge()

use_lifecycle_badge(stage)

use_binder_badge(urlpath = NULL)

Arguments

badge_name

Badge name. Used in error message and alt text

href, src

Badge link and image src

stage

Stage of the package lifecycle

urlpath

An optional urlpath component to add to the link, e.g. "rstudio" to open an RStudio IDE instead of a Jupyter notebook. See the binder documentation for additional examples.

Details

See Also

The functions that set up continuous integration services also create badges.

Examples

1
2
3
4
5
## Not run: 
use_cran_badge()
use_lifecycle_badge("stable")

## End(Not run)

usethis documentation built on July 4, 2019, 5:05 p.m.