Infix spaces linterSource:
Check that infix operators are surrounded by spaces. Enforces the corresponding Tidyverse style guide rule; see https://style.tidyverse.org/syntax.html#infix-operators.
Character vector of operators to exlude from consideration for linting. Default is to include the following "low-precedence" operators:
*, and any infix operator (exclude infixes by passing
"%%"). Note that
<<-are included/excluded as a group (indicated by passing
"<-"), as are
"->"), and that
=for assignment and for setting arguments in calls are treated the same.
FALSE, usage like
x = 2will also be linted; excluded by default because such usage can sometimes be used for better code alignment, as is allowed by the style guide.
linters for a complete list of linters available in lintr.