View source: R/line_length_linter.R
line_length_linter | R Documentation |
Check that the line length of both comments and code is less than length
.
line_length_linter(length = 80L)
length |
maximum line length allowed. Default is 80L (Hollerith limit). |
configurable, default, readability, style
linters for a complete list of linters available in lintr.
# will produce lints
lint(
text = strrep("x", 23L),
linters = line_length_linter(length = 20L)
)
# okay
lint(
text = strrep("x", 21L),
linters = line_length_linter(length = 40L)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.