-
Notifications
You must be signed in to change notification settings - Fork 20
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
unzip return value #35
Comments
Right, that would indeed make sense. It is not too hard to work around it, though, just call ❯ zip::zip("/tmp/x.zip", "works/zip/R")
❯ exdir <- tempfile()
❯ zip::unzip("/tmp/x.zip", exdir= exdir)
❯ files <- file.path(exdir, zip::zip_list("/tmp/x.zip")$filename)
❯ file.exists(files)
[1] TRUE TRUE TRUE TRUE TRUE It should not be too slow, because AFAIR |
Hi Gabar, |
Yes, will add that at some point, it will probably return a data frame, though, to be able to add more data to it. |
perfect! |
Wait, don't close this, because then I'll forget. :) |
Hi Gabor,
I really like the zip package.
We'd like to use the
unzip
command and need the path to the unzipped file.The
utils::unzip
function returns:Otherwise for the "internal" method, a character vector of the filepaths extracted to, invisibly.
In the
zip::unzip
the return is invisible().I'm not familiar with the calling of C code in the unzip function
.Call(c_R_zip_unzip, zipfile, files, overwrite, junkpaths, exdir)
and what it does return.
If it would be possible to implement a return as a character vector of the filepaths extracted to, it would be great.
Thanks, Christoph
The text was updated successfully, but these errors were encountered: