infix_spaces_linter {lintr} | R Documentation |
Check that infix operators are surrounded by spaces. Enforces the corresponding Tidyverse style guide rule; see https://style.tidyverse.org/syntax.html#infix-operators.
infix_spaces_linter(exclude_operators = NULL, allow_multiple_spaces = TRUE)
exclude_operators |
Character vector of operators to exlude from consideration for linting.
Default is to include the following "low-precedence" operators:
|
allow_multiple_spaces |
Logical, default |
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#infix-operators