Description
I'm trying to set up a GitHub Actions to ding us whenever we forget to roxygenize()
some change. This happens with some frequency when a change to docs is made during review.
My current approach (r-lib/lintr@85ed38a) is a bit long-winded: (1) check the content of man/ doesn't change after roxygenize()
, then loop over the files and check that the content hasn't changed.
OTOH, it seems from the output of roxygenize()
that it is already doing this sort of comparison under the hood -- hence "Writing 'any_is_na_linter.Rd'" in the roxygenize()
output:
However, AFAICT this info is lost after being emitted to the terminal. If it were part of the roxygenize()
output, I could save some headache maintaining the similar script, as well as being more confident the two classifiers would always agree without trying to call roxygen2:::same_contents()
myself.