assignment_linter {lintr}R Documentation

Assignment linter

Description

Check that ⁠<-⁠ is always used for assignment.

Usage

assignment_linter(allow_cascading_assign = TRUE, allow_right_assign = FALSE)

Arguments

allow_cascading_assign

Logical, default TRUE. If FALSE, <<- and ⁠->>⁠ are not allowed.

allow_right_assign

Logical, default FALSE. If TRUE, ⁠->⁠ and ⁠->>⁠ are allowed.

Tags

consistency, default, style

See Also

linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#assignment-1


[Package lintr version 3.0.0 Index]