lint

0th

Percentile

Lint all source files in a package.

The default lintings correspond to the style guide at http://r-pkgs.had.co.nz/r.html#style, however it is possible to override any or all of them using the linters parameter.

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

package description, can be path or package name. See as.package for more information

cache

store the lint results so repeated lints of the same content use the previous results.

...

additional arguments passed to lint_package

Details

The lintr cache is by default stored in ~/.R/lintr_cache/ (this can be configured by setting options(lintr.cache_directory)). It can be cleared by calling clear_cache.

See Also

lint_package, lint

Aliases
  • lint
Documentation reproduced from package devtools, version 1.13.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.