1) When I start vim :echo $PATH produces the correct path to my new R installation (including C:\Program Files\R\R-3.4.1\bin\x64) but if I load an r script the path gets prepended with the path of the old R installation (C:\Program Files\R\R-3.2.2\bin\x64). I have searched high and low to try to find where the 3.2.2 path information may be coming from (registry, environment variables, grepped all files) but no luck.
2) Then, on typing \rf the nvimcom installation fails with the message:
Error detected while processing C:\Program Files (x86)\Vim\_vimrc:
line 10:
E121: Undefined variable: C
E15: Invalid expression: C:/Program Files/R/R-3.4.1/bin/x64
"~\latex\work\OSID\OneSample_jags.R" 79L, 3239C
Failed to install nvimcom
Nvim-R is incompatible with Rtools 3.4 (August 2016). Please, try Rtools 3.3.
_vimrc does not contain an expression 'C:/Program Files/R/R-3.4.1/bin/x64' so I can't see where that is coming from either.
Possibly 1) and 2) are related but can you make any suggestions how to fix? Of course I could try reverting to RTools 3.3 but I'm not sure if this is the issue. I have another machine set up in the same way and it seems to work just fine.
Thanks, Steve