Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDownloading multiple files #46
Comments
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
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 |
This comment has been minimized.
This comment has been minimized.
@adam3smith ah, I just clicked and I see what you mean:
Yes, that should do the trick, if it gets called. |
This comment has been minimized.
This comment has been minimized.
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 |
adam3smith commentedJan 10, 2020
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?