Check that <-
is always used for assignment.
Usage
assignment_linter(
allow_cascading_assign = TRUE,
allow_right_assign = FALSE,
allow_trailing = TRUE
)
Arguments
- allow_cascading_assign
Logical, default
TRUE
. IfFALSE
,<<-
and->>
are not allowed.- allow_right_assign
Logical, default
FALSE
. IfTRUE
,->
and->>
are allowed.- allow_trailing
Logical, default
TRUE
. IfFALSE
then assignments aren't allowed at end of lines.
See also
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#assignment-1