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:
parent
10a9177b6b
commit
252097bee0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user