-
Notifications
You must be signed in to change notification settings - Fork 24
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
Downloading multiple files #46
Comments
I don't mean to muddy the waters but there is a conversation going on about the The Dataverse API absolutely does allow you to ask the Dataverse server to zip up a bunch of files by passing a comma-separated list of database IDs for files: http://guides.dataverse.org/en/4.18.1/api/dataaccess.html#multiple-file-bundle-download You could also create the zip file client side, but this is more work (though easier on the server). You'd need to get the file hierarchy from the |
Thanks @pdurbin -- yes, aware of the file zip limit discussion, but at least I'm using this with QDR where we have a more generous limit.
Yes, that's what I was referring to and the linked code in |
@adam3smith ah, I just clicked and I see what you mean:
Yes, that should do the trick, if it gets called. 😄 |
Ah got it -- this is possible in principle using a numeric vector (as one would expect), but there's a regression from 5ec375b that missed one of the file --> fileid I'll submit a PR with added documentation, test, and fix |
Given that #47 "[does not] use the zip functionality of the API at all" and instead stores the each file content in a R list, does this mean we cannot implement a |
The current functionality and examples (e.g. here in doc) should be enough for the immediate task for this issue. Further considerations are to write a test for multi-file structures, and considering a |
Please specify whether your issue is about:
I think this is just a question, but might also be enhancement/bug report.: The dataverse API allows downloading multipel files as .zip. This is particularly relevant now as it preserves the folder structure where available.
There is code in the
get_file()
function that accesses this functionality, but I don't actually think it's ever possible to get there: I find no way of specifying multiple fileidsSo first question:
get_file()
?file
parameter?The text was updated successfully, but these errors were encountered: