I'm trying to debug why I'm suddenly getting the error
tar.exe: Error exit delayed from previous errors.
on running install_github
. Thinking there might be a problem with the tar
program, I came across this oddity:
> Sys.getenv("PATH")
[1] "C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Rtools\\bin;C:\\Windows\\system32;[...]"
> Sys.which("tar")
tar
"C:\\WINDOWS\\SYSTEM32\\tar.exe"
> file.exists("C:\\Rtools\\bin\\tar.exe")
[1] TRUE
Why is R using the system tar
, as opposed to the Rtools-supplied tar
, when the Rtools directory is earlier in the path?
OS is Windows 10 2004 (build 19041.330), R 4.0.0.