paren_body_linter {lintr} | R Documentation |
Check that there is a space between right parenthesis and a body expression.
paren_body_linter()
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "function(x)x + 1",
linters = paren_body_linter()
)
# okay
lint(
text = "function(x) x + 1",
linters = paren_body_linter()
)