Lint all files in a project. Implemented as a wrapper for lintr::lint_dir().
Usage
lint_all(
pattern = "(?i)[.](r|rmd|qmd|rnw|rhtml|rpres|rrst|rtex|rtxt)$",
exclusions = list("renv", "packrat", "R/RcppExports.R"),
...
)Arguments
- pattern
regex pattern for files, by default it will take files with any of the extensions .R, .Rmd, .qmd, .Rnw, .Rhtml, .Rpres, .Rrst, .Rtex, .Rtxt, ignoring case.
- exclusions
exclusions for
exclude(), relative to the package path.- ...
Arguments passed on to
lintr::lint_dirparse_settingsLogical, default
TRUE. Whether to try and parse the settings. Otherwise, thedefault_settings()are used.pathFor the base directory of the project (for
lint_dir()) or package (forlint_package()).relative_pathif
TRUE, file paths are printed using their path relative to the base directory. IfFALSE, use the full absolute path.show_progressLogical controlling whether to show linting progress with a simple text progress bar via
utils::txtProgressBar(). The default behavior is to show progress ininteractive()sessions not running a testthat suite.
