View source: R/spaces_left_parentheses_linter.R
spaces_left_parentheses_linter | R Documentation |
Check that all left parentheses have a space before them unless they are in a function call.
spaces_left_parentheses_linter()
default, readability, style
linters for a complete list of linters available in lintr.
function_left_parentheses_linter()
# will produce lints
lint(
text = "if(TRUE) x else y",
linters = spaces_left_parentheses_linter()
)
# okay
lint(
text = "if (TRUE) x else y",
linters = spaces_left_parentheses_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.