Skip to content

roxygen2 should return info about what's changed, or otherwise get a helper for this #1561

Open
@MichaelChirico

Description

@MichaelChirico

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:

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions