0
I encountered the same problem, **System error 267 (the directory name is invalid), when trying to use the Git tools in RStudio** after updating RStudio, R, and Rtools.
The steps taken to solve
1. Installed git from git-scm.com/install/windows. Select the default settings
2. Proceeded to **Tools -\> Global options -\> Git/SVN-\> Git executables** and changed the path from Rtools45 path to C:/Users/username/AppData/Local/Programs/Git/bin/git.exe
3. Applied changes and
4. Restarted RStudio.
5. Solved. Git tools are working again.
6. Thanks
I encountered the same problem, **System error 267 (the directory name is invalid), when trying to use the Git tools in RStudio** after updating RStudio, R, and Rtools.
The steps taken to solve
1. Installed git from git-scm.com/install/windows. Select the default settings
2. Proceeded to **Tools -\> Global options -\> Git/SVN-\> Git executables** and changed the path from Rtools45 path to C:/Users/username/AppData/Local/Programs/Git/bin/git.exe
3. Applied changes and
4. Restarted RStudio.
5. Solved. Git tools are working again.
6. Thanks