Add special marker comments delimiting the badge section of package README

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)

Value

Path to modified readme file (invisibly)

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

See also