upgraded to vim81 now can't start r

41 views
Skip to first unread message

spg...@gmail.com

unread,
Oct 13, 2018, 8:51:42 AM10/13/18
to Nvim-R
Hi, I just updated my vim to version 8.1, and it seems to run fine (windows) but I can't get it working with r, \rf just gives a beep and it seems as though the file type is not recognised, no syntax highlighting and _ does not change to ->

When I load an r files I get:
error processing BufRead Autocommands for *.r
error processing BufRead Autocommands for *.R
E177 unknown function dist#ft#FTr

Tried reinstalling  Nvim-R.vmb 0.9.12 but no joy

I also have tried Vim-R-plugin.vmb but this doesn't work either. Actually I'm not sure what the difference is between Nvim-R and Vim-R or which one I should use!

Any help appreciated.

Thanks, Steve


spg...@gmail.com

unread,
Nov 13, 2018, 10:28:11 AM11/13/18
to Nvim-R
OK, this is an ongoing saga but a little progress. I have now solved the "make[1]: cc: Command not found" error which is discussed here by making a copy of gcc.exe as cc.exe in Rtools/mingw_64, nvimcom now seems to install and \rf starts rterm and seems to work OK but I want the GUI so I put in my vimrc 

let R_path = 'C:\\Program Files\\R\\R-3.5.1\\bin\\x64'
let R_args = ['--no-save', '--quiet']
let R_app = 'Rgui'
let R_cmd = 'Rgui'

Now when \rf runs the Rgui starts with "unknown option -f" "argument 'c:/temp/NvimR-xyz/nvimcom_path.R'__ignored___" before showing the Rgui where it hangs with "nvimcom: Environment variable NVIMR_SECRET is missing." There are also some errors in the now hung vim window: "error detected while processing function StartR[26]...CheckNvimcomVersion", "cannot open file c:/temp/NvimR-xyz/libpaths"+, and "Invalid arguments for function expand...g:R_remote_tmpdir"

+this directory does not exist.

Any ideas?

Jakson Alves de Aquino

unread,
Nov 14, 2018, 5:37:55 AM11/14/18
to Nvim-R
On Windows, R_cmd must be a terminal application, not Rgui.exe. It must be Rterm, unless either you have renamed Rterm or you use another terminal frontend instead of Rterm (e.g. a script to access R remotely).

spg...@gmail.com

unread,
Nov 14, 2018, 4:27:10 PM11/14/18
to Nvim-R
Thanks for the reply. Before I upgraded vim this was working just fine \rf started Rgui without any special effort on my part, and it 'just works' on another machine with recently upgrade to vim 8.1, any suggestions for what I should try to do to get Rgui running?

Jakson Alves de Aquino

unread,
Nov 14, 2018, 6:15:20 PM11/14/18
to Nvim-R
If you want to use Rgui, you have to put in your vimrc:
let R_in_buffer = 0

spg...@gmail.com

unread,
Nov 20, 2018, 4:20:46 AM11/20/18
to Nvim-R
Thanks, that seems to have sorted it
Reply all
Reply to author
Forward
0 new messages