Skip to content

install_github error "foo.zip cannot be opened" #82

Description

@cboettig

I get this error on several packages, but not all. Cloning the repo and running R CMD INSTALL works just fine. I've had a colleague who can reproduce this and another who can't -- so I'm not sure where to start debugging. Session info below.

install_github("RWordPress", "duncantl")
Installing github repo(s) RWordPress/master from duncantl
Installing RWordPress.zip from https://github.com/duncantl/RWordPress/zipball
Error in expand(src, list = TRUE) : 
  zip file '/tmp/Rtmpd7zQav/RWordPress.zip' cannot be opened
In addition: Warning message:
In expand(src, exdir = tempdir()) : error 1 in extracting from zip file

Enter a frame number, or 0 to exit   

1: install_github("RWordPress", "duncantl")
2: install_url(url, paste(repo, ".zip", sep = ""), ...)
3: mapply(install_url_single, url, name, ...)
4: function (url, name = NULL, ...) 
{
    if (is.null(name)) {
        name <- b
5: decompress(bundle)
6: file.path(target, outdir())
7: outdir()
8: basename(as.character(expand(src, list = TRUE)$Name[1]))
9: expand(src, list = TRUE)

system info:

> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=C                  LC_COLLATE=C              
 [5] LC_MONETARY=C              LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] knitr_0.4.6  devtools_0.6

loaded via a namespace (and not attached):
 [1] RCurl_1.91-1    Rcpp_0.9.10     codetools_0.2-8 digest_0.5.2   
 [5] evaluate_0.4.2  formatR_0.4     highlight_0.3.1 parser_0.0-14  
 [9] plyr_1.7.1      stringr_0.6     tools_2.15.0   
> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions