Installed R, R Studio, Git but when I opened R Studio, there was no Git tab,
like the screenshot below:
Windows 8.1, x64
R version: 3.5.1
R Studio version: 1.1.463
Git: 2.19.2
When I opened Tools/Global Options/GitSVN:
Git executable: C:/Program Files/Git/bin/git.exe
SVN executable: C:/Program Files/Git/bin/sh.exe
* I cannot find any file called "svn.exe" in the git folder.
I tried to solve the issue by following methods, but none of them work:
1. After I ran Sys.which("git")
in the R Studio, the output was:
"C:\\PROGRA~1\\Git\\cmd\\git.exe"
, so I tried to change the git executable to cmd/git
instead of bin/git
, not work.
2. Re-install everything, no success.
3. Tried older Git version 2.14 but still no success.
Anyone can help me with this? Thank you!
In order to see the Git tab in the upper right pane in RStudio, one must create an RStudio project, as follows.
Starting from the RStudio main panel, there is no git
tab prior to loading a project
Select File > New Project from the main menu bar to create a project
Select New Directory on the dialog box that appears.
Next, fill out the new project information, check the create git repository box, and press the Create Project button.
Once the project has been created, the Git tab is now visible in the upper right quadrant of RStudio.
See also Version Control with Git and SVN on the RStudio support website.