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_dir
parse_settings
Logical, default
TRUE
. Whether to try and parse the settings; otherwise, thedefault_settings()
are used.path
For the base directory of the project (for
lint_dir()
) or package (forlint_package()
).relative_path
if
TRUE
, file paths are printed using their path relative to the base directory. IfFALSE
, use the full absolute path.show_progress
Logical 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.