use_badges | R Documentation |
Create one or more badges showing the status of your R package. Uses the package badger.
use_badges(
ref = NULL,
add_hex = TRUE,
add_actions = "rworkflows",
add_doi = NULL,
add_lifecycle = FALSE,
add_github_version = TRUE,
add_commit = TRUE,
add_code_size = TRUE,
add_license = TRUE,
add_authors = TRUE,
add_codecov = TRUE,
add_codecov_graphs = "icicle",
add_bioc_release = FALSE,
add_bioc_download_month = FALSE,
add_bioc_download_total = FALSE,
add_bioc_download_rank = FALSE,
add_cran_release = FALSE,
add_cran_checks = FALSE,
add_cran_download_month = FALSE,
add_cran_download_total = FALSE,
branch = "master",
as_list = FALSE,
sep = "\n",
hex_height = 300,
codecov_graph_width = 200,
colors = list(github = "black", bioc = "green", cran = "black", default = "blue",
lifecycle = NULL),
verbose = TRUE
)
ref |
Reference for a GitHub repository. If |
add_hex |
Add a hex sticker.
If |
add_actions |
The name of one or more GitHub Actions to show the status for with badge_github_actions (e.g. c("rworkflows","rworkflows_static")). |
add_doi |
Add the DOI of a given package or publication
associated with the package using badge_doi.
Must be provided as a character string, e.g.:
|
add_lifecycle |
Add package lifecycle stage.
If not
See lifecycle.r-lib.org for further details. |
add_github_version |
Add package version with badge_github_version. |
add_commit |
Add the last GitHub repo commit date with badge_last_commit. |
add_code_size |
Add code size with badge_code_size. |
add_license |
Add license info with badge_license. |
add_authors |
Add author names inferred from
the |
add_codecov |
Add Codecov status with badge_codecov. See the Codecov site for more information about these badges. |
add_codecov_graphs |
Add Codecov graphs visualising results of code coverage tests. Options include:
See the Codecov site for more information about each plot type. |
add_bioc_release |
Add Bioc release version with badge_bioc_release. |
add_bioc_download_month |
Add the number of Bioc downloads last month badge_bioc_download. |
add_bioc_download_total |
Add the number of Bioc downloads total badge_bioc_download. |
add_bioc_download_rank |
Add the download rank of the package on Bioc badge_bioc_download_rank. |
add_cran_release |
Add Bioc release version with badge_cran_release. |
add_cran_checks |
Add whether package is passing all checks on CRAN with badge_cran_checks. |
add_cran_download_month |
Add the number of CRAN downloads last month badge_cran_download. |
add_cran_download_total |
Add the number of CRAN downloads total badge_cran_download. |
branch |
Name of the GitHub repository branch to use. |
as_list |
Return the header as a named list ( |
sep |
Character to separate each item in the list with using paste. |
hex_height |
Height of the hex sticker in pixels
(when |
codecov_graph_width |
Width of each Codecov graph in pixels
(when |
colors |
Colors to assign to each group of badges (when possible). |
verbose |
Print messages. |
A named list of selected badges in markdown format.
badges <- rworkflows::use_badges(ref = "neurogenomics/rworkflows")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.