Block usage like x %in% "a"Source:
vector %in% set is appropriate for matching a vector to a set, but if
that set has size 1,
== is more appropriate.
is matched as well.
scalar %in% vector is OK, because the alternative (
any(vector == scalar))
is more circuitous & potentially less clear.
linters for a complete list of linters available in lintr.