diff options
Diffstat (limited to 'ale_linters/r')
-rw-r--r-- | ale_linters/r/lintr.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ale_linters/r/lintr.vim b/ale_linters/r/lintr.vim index 799458fb..339ad2b0 100644 --- a/ale_linters/r/lintr.vim +++ b/ale_linters/r/lintr.vim @@ -1,5 +1,6 @@ " Author: Michel Lang <michellang@gmail.com>, w0rp <devw0rp@gmail.com>, -" Fenner Macrae <fmacrae.dev@gmail.com> +" Fenner Macrae <fmacrae.dev@gmail.com>, +" ourigen <https://github.com/ourigen> " Description: This file adds support for checking R code with lintr. let g:ale_r_lintr_options = get(g:, 'ale_r_lintr_options', 'with_defaults()') @@ -21,7 +22,7 @@ function! ale_linters#r#lintr#GetCommand(buffer) abort let l:cmd_string = 'suppressPackageStartupMessages(library(lintr));' \ . l:lint_cmd - return 'Rscript --vanilla -e ' . ale#Escape(l:cmd_string) . ' %t' + return 'Rscript --no-save --no-restore --no-site-file --no-init-file -e ' . ale#Escape(l:cmd_string) . ' %t' endfunction call ale#linter#Define('r', { |