I'm trying to use git from within R to send command to github via curl (i.e., I'm trying to make this question work as an R function). I can accomplish this if I can find the location of git.exe. I thought I could use Sys.which
but it doesn't work.
> Sys.which("git")
git
""
But I know the file is there when I do:
> system('"C:\\Program Files (x86)\\Git\\bin\\git" --version')
git version 1.7.11.msysgit.1
How can I find git.exe on Windows? (or perhaps I'm going about the entire problem wrong as happened to me here)