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).
As seen here: #931 (comment)
Basically our
tools::checkUsage()call doesn't match that ofR CMD check. In this case, it's because the defaultcheckUsage()doesn't setskipWith=TRUE, so objects seen insidewith()calls can trip the linter.My understanding is the main goal of
object_usage_linteris to help matchR 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 setTRUEby default).