Last chance! 50% off unlimited learning
Sale ends in
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.
# 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