Check that there is a space between right parenthesis and a body expression.
See also
linters for a complete list of linters available in lintr.
Examples
# will produce lints
lint(
text = "function(x)x + 1",
linters = paren_body_linter()
)
#> ::warning file=<text>,line=1,col=12::file=<text>,line=1,col=12,[paren_body_linter] There should be a space between a right parenthesis and a body expression.
# okay
lint(
text = "function(x) x + 1",
linters = paren_body_linter()
)