Skip to content

Commit

Permalink
use rplugin_Rcmd instead of rplugin_R (#230)
Browse files Browse the repository at this point in the history
A user can be using another R program such as `rice` and `rplugin_Rcmd` defaults to `R_app` which should be `rice` is that case.
  • Loading branch information
randy3k authored and jalvesaq committed Sep 6, 2017
1 parent 20649ce commit ca2e28c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/common_global.vim
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ function CheckNvimcomVersion()
let slog = system('R --no-save', rcode)
else
" Works even with local Vim and remote R (but not on Windows)
let slog = system(g:rplugin_R . ' --no-save', rcode)
let slog = system(g:rplugin_Rcmd . ' --no-save', rcode)
endif
if v:shell_error
call RWarningMsg(slog)
Expand Down Expand Up @@ -3597,4 +3597,3 @@ endif
if exists("g:R_ca_ck")
call RWarningMsgInp("The option R_ca_ck was renamed as R_clear_line. Please, update your vimrc.")
endif

0 comments on commit ca2e28c

Please sign in to comment.