View source: R/spaces_inside_linter.R
spaces_inside_linter | R Documentation |
Check that parentheses and square brackets do not have spaces directly inside them, i.e., directly following an opening delimiter or directly preceding a closing delimiter.
spaces_inside_linter()
default, readability, style
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = "c( TRUE, FALSE )",
linters = spaces_inside_linter()
)
lint(
text = "x[ 1L ]",
linters = spaces_inside_linter()
)
# okay
lint(
text = "c(TRUE, FALSE)",
linters = spaces_inside_linter()
)
lint(
text = "x[1L]",
linters = spaces_inside_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.