Use --vanilla switch for Rscript

This prevents possibly bad interference with the user's R environment,
e.g. by an auto-activating packrat.
This commit is contained in:
Stefan Siegel 2018-06-07 15:06:09 +02:00
parent 10a9177b6b
commit 252097bee0

View File

@ -22,7 +22,7 @@ function! ale_linters#r#lintr#GetCommand(buffer) abort
\ . l:lint_cmd
return ale#path#BufferCdString(a:buffer)
\ . 'Rscript -e '
\ . 'Rscript --vanilla -e '
\ . ale#Escape(l:cmd_string) . ' %t'
endfunction