From 252097bee0966cd1136be66d87b9a8b723a9758e Mon Sep 17 00:00:00 2001 From: Stefan Siegel Date: Thu, 7 Jun 2018 15:06:09 +0200 Subject: Use --vanilla switch for Rscript This prevents possibly bad interference with the user's R environment, e.g. by an auto-activating packrat. --- ale_linters/r/lintr.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters') diff --git a/ale_linters/r/lintr.vim b/ale_linters/r/lintr.vim index 51e5c562..8f74c9b8 100644 --- a/ale_linters/r/lintr.vim +++ b/ale_linters/r/lintr.vim @@ -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 -- cgit v1.2.3