mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-24 21:11:28 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user