Seems this a somewhat common problem that we ran into recently...and it was specific to MacOSX I believe. The error popped up when folks tried to clone/create a new version controlled project in RStudio. Error window encountered looked like this:
Potential Solutions:
A: Try git config --global --list in the command line (Terminal). For some this may force the user to agree to the XCode license agreement. Then restart RStudio and it should recognize git on the system (i.e., find the /usr/bin/git path).
B: Try running /usr/bin/git --version or /usr/bin/clang --version in the command line (Terminal). This may trigger a warning/request to re-install command line (XCode) tools. (See bullet C below).
C: Install XCode tools...which may be required for other packages/processes (tibble package is one that comes to mind). After installed, you'll need to open application once and agree/click yes for license agreement. Quit/Close application, and start RStudio and try to use Terminal window inside of RStudio with git --version.
Seems this a somewhat common problem that we ran into recently...and it was specific to MacOSX I believe. The error popped up when folks tried to clone/create a new version controlled project in RStudio. Error window encountered looked like this:
Potential Solutions:
git config --global --list
in the command line (Terminal). For some this may force the user to agree to the XCode license agreement. Then restart RStudio and it should recognize git on the system (i.e., find the/usr/bin/git
path)./usr/bin/git --version
or/usr/bin/clang --version
in the command line (Terminal). This may trigger a warning/request to re-install command line (XCode) tools. (See bullet C below).tibble
package is one that comes to mind). After installed, you'll need to open application once and agree/click yes for license agreement. Quit/Close application, and start RStudio and try to use Terminal window inside of RStudio withgit --version
.