Learn R Programming

lint (version 0.3)

stylechecks: Style checks

Description

Style checks

Usage

spacing.linelength.80

spacing.linelength.100

spacing.indentation.notabs

spacing.notabs

spacing.indentation.evenindent

spacing.spaceaftercomma

spacing.spacearoundinfix

spacing.spacearoundequals

spacing.twobeforecomments

lint.style

Arguments

format

Each test can be defined in several formats and is very flexible. A test consists of a names list of attributes.
  1. patternis a pcre compatibleregular expressionthat is tested. Can be a character vector of expressions.
  2. messageThe message to be displayed.
  3. include.regionlists regions to restrict the search to. Can be a character vector specifying the known regions, or a list of functions that interpret output fromgetParseData.
  4. exclude.region=c('comments', 'string')lists regions to restrict the search to. Operates the sames asinclude.region.
  5. use.lines=Tshould the pattern be evaluated in lines (default) or as a contiguous block of text.
  6. warning=F