3

I'm trying to use version to upload an R package to github. The problem is, once I've installed git version 2.10.0, Rstudio will not open. Oddly, R still works if I don't use R studio. I've re-installed R (now using 3.3.1) R studio, and Rtools. If I uninstall git, Rstudio works again. I've used the 'Run Diagnostics' tool in the bin folder of Rstudio (while git is installed) to try and figure out what is going on. I get the following mess in the command window:

>Attempting to launch R session...
>R_HOME=C:\PROGRA~1\R\R-33~1.1
>PATH=C:\Program Files\R\R-  
>3.3.1\bin\x64;C:\Perl64\site\bin;C:\Perl64\bin;C:\Pr
>ogramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11     
>Network
>Adapter;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program   
>Files\Intel\iCLS   
>Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;
>C:\windows\System
>32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management   
>Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine 
>Components\IPT;C:\
>Program Files (x86)\Intel\Intel(R) Management Engine  
>Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
>Components\IPT;C:\Program Files\Leno
>vo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth  
>Software\syswow64;C:\Program Files\MATLAB\R2014a\runtime\win64;C:\Program 
>Files\MATLAB\R2014a\bin;C:\Program Files (x86)\Windows 
>Live\Shared;C:\Program Files\Git\cmd

>R session launched, attempting to connect on port 29645...

>Connected to R session, attempting to initialize...
3
  • If you launch it through a batch file / shortcut / etc. that explicitly sets the PATH (with Git excluded from the new value), is all well? Sep 25, 2016 at 15:39
  • It's a plausible-sounding guess (absent reading the implementation) that it looks for some executable that's typically a UNIX-y tool and falls back to a native-Windows implementation if it's not present; if you have Git for Windows in your PATH providing said tool, it can block the fallback. Or maybe there's a conflict over MSYS DLL versions. Or maybe... well, I could keep guessing for a while. Sep 25, 2016 at 15:41
  • Thanks Charles--It turned out to be a problem with the R local session state, but I really appreciate the help! Sep 26, 2016 at 21:03

1 Answer 1

2

We have seen issues of this form occur when RStudio is pointing to the 'wrong' Git executable; for example, if you tried to indicate to RStudio that git-bash.exe should be used rather than git.exe, bad things will happen. (The preview version of RStudio now tries to enforce that you choose a git executable called git.exe.)

The simplest way to resolve this is to clear out your RStudio local session state -- see https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State for more information.

2
  • This was incredibly helpful! Thank you so much Kevin! Sep 26, 2016 at 21:02
  • Here is the Windows information contained the link that clears out the sessions state: You can open an Explorer window into the RStudio-Desktop directory by typing the following command into Start -> Run: %localappdata%\RStudio-Desktop. Copy this to create a backup, then delete the directory. RStudio should will regenerate it with defaults when you restart. Mar 21, 2019 at 0:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.