2012-03-15 114 views

回答

9

svTools包中有codetools包(特別是checkUsage函數)和lint函數。

0

是我從這裏lintr檢查工作:

https://www.r-project.org/nosvn/pandoc/lintr.html

​​

安裝Vim的:

把文件syntastic/lintr.vim下synthesis/syntax_checkers/r目錄。如果你使用病原體,這個目錄是〜/ .vim/bundles/syntastic/syntax_checkers/r。

然後將以下行添加到.vimrc中。

let g:syntastic_enable_r_lintr_checker = 1 
let g:syntastic_r_checkers = ['lintr'] 

啓動Vim,它應該工作,這裏是我的:

enter image description here

相關問題