lint: Lint all source files in a package

View source: R/lint.R

lintR Documentation

Lint all source files in a package


The default linters correspond to the style guide at, however it is possible to override any or all of them using the linters parameter.


lint(pkg = ".", cache = TRUE, ...)



The package to use, can be a file path to the package or a package object. See as.package() for more information.


Store the lint results so repeated lints of the same content use the previous results. Consult the lintr package to learn more about its caching behaviour.


Additional arguments passed to lintr::lint_package().

See Also

lintr::lint_package(), lintr::lint()

devtools documentation built on Oct. 12, 2022, 1:06 a.m.