Rdocumentation
powered by
Learn R Programming
lint (version 0.3)
Tools to check R code style
Description
Tools for checking R code for style compliance. Tools for creating style compliance tests. A suite of pre-built tests is provided.
Copy Link
Link to current version
Version
Version
0.3
0.2
0.1
Install
install.packages('lint')
Monthly Downloads
55
Version
0.3
License
GPL (>= 3)
Maintainer
Andrew Redd
Last Published
April 3rd, 2013
Functions in lint (0.3)
Search all functions
test_style
Test a patten for consistency.
rr
make a results row A convenience utility for creating the results rows for autotest style test info
performance-styles
Performance Enhancing Styles
make_class_finder
Finder Functions Finders are helper functions that assist in the definition of style checks. These function assist by finding the regions that are either included or excluded from check. Each finder must accept the following arguments and as well as the variadic argument
...
.
file
lines
parse.data
Order of arguments is not guaranteed so explicit names use is required, since use of named arguments is guaranteed. In addition other arguments may be added later. Each finder is expected to return a
find
formated data.frame. Custom finders are encouraged, but finders for common classes are included in the package.
assignment-styles
Assignment Style
find_example
Find an example file.
stylechecks
Style checks
lint
Check for stylistic errors.
conversion
Lint internal data structures
check_pattern
Check a pattern against lines
dispatch_test
Dispatch tests to the appropriate handler
package-lint
lint
: R code style checker
base-patterns
Base Patterns
with_default
Look for an argument.
functional.Rd
function based tests