-
Notifications
You must be signed in to change notification settings - Fork 1.1k
(v3.7.0) R: lint
Maintainer: LCD 47 [email protected]
This is a style checker for R files, using the R package lint.
- g:syntastic_r_lint_styles (string; default: "lint.style")
- R list of style tests to apply.
Set g:syntastic_r_lint_styles
to something like this:
let g:syntastic_r_lint_styles = 'list(spacing.indentation.notabs, spacing.indentation.evenindent)'
See lint's manual for possible values.
The checker uses column numbers only when running into syntax errors.
If you're checking files containing tab characters, then Vim's tabstop
must match R's idea of tabstop, otherwise column numbers will be
shifted. At the time of this writing, R's tabstop is hardcoded to
8, so you should probably add something like this to your vimrc:
set tabstop=8
The lint package will only show at most 5 messages of a kind. At the time of this writing, this is not configurable.
Beware also that the checker is pretty slow when using the default style
setting of lint.style
.
This checker doesn't call the makeprgBuild()
function, and thus it ignores
the usual g:syntastic_r_lint_<option>
variables. The only exception is
g:syntastic_r_lint_exec
, which can still be used to override the R
executable.