add_badge_comments: Add special marker comments delimiting the badge section of...

Description Usage Arguments Details Value See Also

View source: R/badges.R

Description

Add special marker comments delimiting the badge section of package README

Usage

1
add_badge_comments(x = "README.md", f = NULL)

Arguments

x

Name of README file

f

Absolute path to file (can be used instead of x for debugging)

Details

Badge comment lines are required for usethis::use_badge and friends to automagically add badges to a README.

add_badge_comments will only add badge comments if they are not yet present. If there are some badges present then will add marker comments on either side. Will give a warning and do nothing if badge lines are not contiguous

Value

Path to modified readme file (invisibly)

See Also

natverse-badges, usethis::use_badge


jefferis/nat.devtools documentation built on July 10, 2021, 12:07 p.m.