Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lint_file

Lint a file


Description

Apply one or more linters to a file and return the lints found.

Usage

lint(filename, linters = NULL, cache = FALSE, ..., parse_settings = TRUE)

Arguments

filename

the given filename to lint.

linters

a named list of linter functions to apply see linters for a full list of default and available linters.

cache

given a logical, toggle caching of lint results. If passed a character string, store the cache in this directory.

...

additional arguments passed to exclude.

parse_settings

whether to try and parse the settings

Value

A list of lint objects.


lintr

A 'Linter' for R Code

v2.0.1
MIT + file LICENSE
Authors
Jim Hester [aut, cre], Florent Angly [aut], Russ Hyde [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.