-
Notifications
You must be signed in to change notification settings - Fork 154
install_github fails with unzip error #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I just tried installing the zip file directly and got the same problem, so the problem is probably not with devtools itself?
|
I have the same problem for several weeks too, still looking for a solution. |
Today, I ran into the problem by letting several people install the However, some of the Windows users ran into the problem described above which looked as follows in our case: > devtools::install_github("rstudio/tutor")
Downloading GitHub repo rstudio/tutor@master
from URL https://api.github.com/repos/rstudio/tutor/zipball/master
Error in utils::unzip(src, exdir = target) :
cannot open file 'C:/Users/mshumper/AppData/Local/Temp/RtmpeE4D2Q/devtools23e061002ad9/rstudio-tutor-1476bf6/R/ace.R': No such file or directory All users installed the current R version 3.3.3 and the current RStudio version 1.0.136 today prior to trying to install Even though I am on Windows as well I was not able to reproduce the bug on my machine. |
This sounds very similar to the problem described in Issue #1433. The work-around was to get rid of .Rbuildignore. |
@gaborcsardi @jimhester have you seen this before? |
Haven't. Can't reproduce. Maybe a "wrong" unzip program again? Although I am not sure how removing |
This looks like the same bug that has been bedevilling my team for years (!). We all have Windows 7 x64 PC, each with the same corporate "build" and have same admin privileges. Yet In particular, note this behaviour:
I've spent quite a bit of time debugging this all to no avail. Squashing this bug would be massive for us. |
@imanuelcostigan Can you pls share a zip file that is problematic, and also the winzip version your colleagues have? |
@imanuelcostigan you might also try comparing |
It's possible that this may also be related to the path length. |
@hadley In the original error, the path is only about 90 characters long, that should be ok. |
@gaborcsardi good point. I'll keep the other issue open |
Note there are a few more recent comments on the original thread which haven't been migrated to this issue. |
getOption(“unzip”) also yields “internal” and fails for me However if I set the unzip option to point to the unzip.exe program bundled with the github application then everything appears to work correctly. The version info for unzip.exe bundled with github is Github/unzip.exe -v Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip/ ; Compiled with gcc 4.9.2 for Unix (Cygwin) on Nov 4 2014. UnZip special compilation options: UnZip and ZipInfo environment options: |
Interestingly if I point instead to the version 6.00 unzip bundled with Rtools then the devtools::install_github process still fails The Rtools version of unzip (which doesn’t work) has several different compilation flags set compared to the version from github (which does work) Compilation flags follow:
|
These are generally smaller and should preserve execute permissions in all cases, whereas some unzip implementations do not do so. Fixes r-lib/devtools#1799 Fixes r-lib#96
These are generally smaller and should preserve execute permissions in all cases, whereas some unzip implementations do not do so. Fixes r-lib/devtools#1799 Fixes r-lib#96
These are generally smaller and should preserve execute permissions in all cases, whereas some unzip implementations do not do so. Fixes r-lib/devtools#1799 Fixes r-lib#96
These are generally smaller and should preserve execute permissions in all cases, whereas some unzip implementations do not do so. Fixes r-lib/devtools#1799 Fixes r-lib#96
These are generally smaller and should preserve execute permissions in all cases, whereas some unzip implementations do not do so. Fixes r-lib/devtools#1799 Fixes #96
Thursday Feb 23, 2017 at 17:58 GMT
Originally opened as r-lib/devtools#1464
I'm trying to install my own package from github: plantarum/flowPloidy, onto a Windows computer. Starting from a fresh session, installing devtools from Cran, I try:
This fails with:
I looked into those directories, and the toplevel directory 'C:/Users/jamest/AppData/Local/Temp/RtmpKWeuxp/devtools1fc45f5c7551/plantarum-flowPloidy-88ad2c0/ is there, and in the downloaded zip file the R folder exists and contains all the code files as you expect.
I tried debugging my way through the code, and got as far as the function get0 before I gave up trying to figure out the ultimate source of the error.
install_github works no problem for this package under Linux.
Thanks for any help or suggestions,
Tyler
R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
The text was updated successfully, but these errors were encountered: