spaces_left_parentheses_linter {lintr} | R Documentation |
Check that all left parentheses have a space before them unless they are in a function call.
spaces_left_parentheses_linter()
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "if(TRUE) x else y",
linters = spaces_left_parentheses_linter()
)
# okay
lint(
text = "if (TRUE) x else y",
linters = spaces_left_parentheses_linter()
)