paren_body_linter {lintr} | R Documentation |
Parenthesis before body linter
Description
Check that there is a space between right parenthesis and a body expression.
Usage
paren_body_linter()
Tags
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()
)
# okay
lint(
text = "function(x) x + 1",
linters = paren_body_linter()
)
[Package lintr version 3.1.2 Index]