Writes the file .github/inlavanilla-badge.json in the package whose root
is path, and prints the line to add to its README. The badge reads
"vanilla", with the release of inlavanilla that the lock
inst/inlavanilla.lock names, such as "v26.11.25-2", in vanilla colours.
The badge is not a fixed image. The README line asks
shields.io to draw it from the
file on GitHub, so it shows the release of the copy on the branch branch
as soon as that file is pushed. use_vanilla() rewrites the file whenever
it updates the copy, so the badge follows the lock. Commit the file with
the lock.
It also adds ^\.github$ to .Rbuildignore where that line is missing,
so that R CMD build leaves the folder out.
It is optional: use_vanilla() does not add it, and offers it at the end of
its list.
Value
Invisibly, the README line, as Markdown. It takes the GitHub
repository of the package from the URL or BugReports field of its
DESCRIPTION. Where neither names one, the line holds OWNER/REPO, to
be replaced by hand.
See also
use_vanilla(), which keeps the badge in step with the lock.
