distinguishing functions from variables in lintr styling (object_name_linter)

Hi all -- for compatibility with the Google R style guide, I would prefer to have different formats for my functions (CamelCase) and my global variables (UPPER_SNAKE_CASE) than for my local variables (snake_case). Right now object_name_linter() in lintr 3.1.2 doesn't seem to distinguish between any of these use cases.

Are there any custom linter functions out there that can handle this distinction and spare me from having to write my own?

simple reprex:
PI_TIMES_TWO <- 6.283185
Circumference <- function(r) {
output <- PI_TIMES_TWO*r
return(output)
}
Circumference(10)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.