powered by
Check that there is a space between right parenthesis and a body expression.
paren_body_linter()
default, readability, style
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#parentheses
# will produce lints lint( text = "function(x)x + 1", linters = paren_body_linter() ) # okay lint( text = "function(x) x + 1", linters = paren_body_linter() )
Run the code above in your browser using DataLab