What are the workarounds on Windows to make it so Sys.which finds the proper executables? Two cases that are reoccuring problems:
convert.exe
which is both a windows program and the ImageMagik program, but Sys.which only finds the windows one which is never wanted from R no matter how I seem to arrange things on my PATH.
tar.exe
is packaged along with various things like git or mingw or whatever, and even when I have Rtools and Rbuildtools first in my path, the tar
program from Rtools is never found, for example when installing a package from source.
So, I have resorted to writing a wrapper that calls 7-zip instead whenever I am on windows. This can't be the thing to do can it?
Edit
Actually just adding an environment variable to .Renviron
: TAR=path/to/tar.exe
works fine for the install.packages
example, and I am having trouble remembering where else the tar.exe
was biting me, but Josh answered the main one, convert.exe
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…