You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem with renv::restore() because untar() used tar.exe from Git for Windows.
That version of tar needs paths like /C/myfile.tar.gz instead of C:/myfile.tar.gz and throws the error message
/usr/bin/tar: Cannot connect to C: resolve failed
While the problem can be fixed locally using Sys.setenv(TAR = ...) to another version of tar, the error is far from obvious, because renv stops with the error file not found (as it tries to download the same tarball from another repo which may not contain the package in question).
If renv:::renv_archive_list_impl used a specific version of tar (maybe installed with renv::equip()?) or used tar = "internal", the error would not occur.
The text was updated successfully, but these errors were encountered:
Let me know if this seems like the right solution. It does change the value of the TAR environment variable globally when renv is loaded (only if it was unset previously).
I had a problem with
renv::restore()
becauseuntar()
used tar.exe from Git for Windows.That version of tar needs paths like
/C/myfile.tar.gz
instead ofC:/myfile.tar.gz
and throws the error messageWhile the problem can be fixed locally using
Sys.setenv(TAR = ...)
to another version of tar, the error is far from obvious, becauserenv
stops with the error file not found (as it tries to download the same tarball from another repo which may not contain the package in question).If
renv:::renv_archive_list_impl
used a specific version oftar
(maybe installed withrenv::equip()
?) or usedtar = "internal"
, the error would not occur.The text was updated successfully, but these errors were encountered: