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

exclude

Exclude lines or files from linting


Description

Exclude lines or files from linting

Usage

exclude(lints, exclusions = settings$exclusions, ...)

Arguments

lints

that need to be filtered.

exclusions

manually specified exclusions

...

additional arguments passed to parse_exclusions

Details

Exclusions can be specified in three different ways.

  1. single line in the source file. default: # nolint

  2. line range in the source file. default: # nolint start, # nolint end

  3. exclusions parameter, a named list of the files and lines to exclude, or just the filenames if you want to exclude the entire file.


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.