Evaluates whether a project meets the criteria of the WORCS
checklist (see worcs_checklist
), and adds a badge to the
project's README.md
.
Arguments
- path
Character. This can either be the path to a WORCS project folder (a project with a
.worcs
file), or the path to achecklist.csv
file. The latter is useful if you want to evaluate a manually updated checklist file. Default: '.' (path to current directory).- update_readme
Character. Path to the
README.md
file to add the badge to. Default: 'README.md'. Set toNULL
to avoid updating theREADME.md
file.- update_csv
Character. Path to the
README.md
file to add the badge to. Default: 'checklist.csv'. Set toNULL
to avoid updating thechecklist.csv
file.
Examples
example_dir <- file.path(tempdir(), "badge")
dir.create(example_dir)
#> Warning: 'C:\Users\vanlissa\AppData\Local\Temp\Rtmp4gfwLj\badge' already exists
write("a", file.path(example_dir, ".worcs"))
worcs_badge(path = example_dir,
update_readme = NULL)