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
.worcsfile), or the path to achecklist.csvfile. 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.mdfile to add the badge to. Default: 'README.md'. Set toNULLto avoid updating theREADME.mdfile.- update_csv
Character. Path to the
README.mdfile to add the badge to. Default: 'checklist.csv'. Set toNULLto avoid updating thechecklist.csvfile.
Examples
example_dir <- file.path(tempdir(), "badge")
dir.create(example_dir)
#> Warning: '/tmp/Rtmp5dyuOX/badge' already exists
write("a", file.path(example_dir, ".worcs"))
worcs_badge(path = example_dir,
update_readme = NULL)
