powered by
Check that the line length of both comments and code is less than length.
length
line_length_linter(length = 80L)
maximum line length allowed. Default is 80L (Hollerith limit).
configurable, default, readability, style
linters for a complete list of linters available in lintr.
https://style.tidyverse.org/syntax.html#long-lines
# 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) )
Run the code above in your browser using DataLab