add_badges: Add badges to the README file for use on Github

Description Usage Arguments Examples

Description

Add badges to the README file for use on Github

Usage

1
2
3
4
5
6
add_badges(github_pkg, states = c("active", "abandoned", "concept",
  "inactive", "moved", "suspended", "unsupported", "wip"),
  readme_file = "README.md", show_repo_status = TRUE,
  show_cran_version = TRUE, show_package_version = TRUE,
  show_min_r = TRUE, show_last_update = TRUE, show_travis = TRUE,
  show_code_coverage = TRUE)

Arguments

github_pkg

The Github repository

states

Current software cycle state

readme_file

The filename of the readme file

show_repo_status

Whether to show the repository status as a badge

show_cran_version

Whether to show the CRAN version as a badge

show_package_version

Whether to show the package version as a badge

show_min_r

Whether to show the minimal R version as a badge

show_last_update

Whether to show the last update date as a badge

show_travis

Whether to show the Travis test results as a badge (see https://travis-ci.org)

show_code_coverage

Whether to show the code coverage as a badge (see https://codecov.io)

Examples

1
2
3
4
## Not run: 
add_badges("hvdboorn/hgutils")

## End(Not run)

hgutils documentation built on Sept. 7, 2019, 5:10 p.m.