View source: R/trailing_blank_lines_linter.R
trailing_blank_lines_linter | R Documentation |
Check that there are no trailing blank lines in source code.
trailing_blank_lines_linter()
default, style
linters for a complete list of linters available in lintr.
# will produce lints
f <- withr::local_tempfile(lines = "x <- 1\n")
readLines(f)
lint(
filename = f,
linters = trailing_blank_lines_linter()
)
# okay
f <- withr::local_tempfile(lines = "x <- 1")
readLines(f)
lint(
filename = f,
linters = trailing_blank_lines_linter()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.