Lint a directory
Apply one or more linters to all of the R files in a directory
lint_dir( path = ".", relative_path = TRUE, ..., exclusions = NULL, pattern = rex::rex(".", one_of("Rr"), end), parse_settings = TRUE )
path |
the path to the base directory, by default, it will be searched in the parent directories of the current directory. |
relative_path |
if |
... |
additional arguments passed to |
exclusions |
exclusions for |
pattern |
pattern for files, by default it will take files with .R or .r extension. |
parse_settings |
whether to try and parse the settings |
A list of lint objects.
## Not run: lint_dir() lint_dir( linters = list(semicolon_terminator_linter()) cache = TRUE, exclusions = list("inst/doc/creating_linters.R" = 1, "inst/example/bad.R") ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.