Skip to content

object_usage_linter doesn't match R CMD check #941

@MichaelChirico

Description

@MichaelChirico

As seen here: #931 (comment)

Basically our tools::checkUsage() call doesn't match that of R CMD check. In this case, it's because the default checkUsage() doesn't set skipWith=TRUE, so objects seen inside with() calls can trip the linter.

My understanding is the main goal of object_usage_linter is to help match R CMD check, so we should adjust our code to match.

But maybe we think of this as a bit more general, and could expose an option instead (e.g. match_r_check, I would set TRUE by default).

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