You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shapefiles are a common example of case for the user needing to load multiple files at once. shapefiles come as a set of multiple files like this example:
In R, we would read this in with sf::st_read("iraq_districts") to refer to the whole set of files that start in "iraq_districts". But doing this with dataverse::get_* in one step is not currently possible
Other datasets like VEST precinct data upload a zipped .zip file instead of the components separately.
What should the guidance be? It is probably too complicated to allow get_* to take a vector of filenames. So an alternative is a snippet that downloads multiple files into a tempfile(), and reads from that tempfile?
The text was updated successfully, but these errors were encountered:
Something to think about:
Shapefiles are a common example of case for the user needing to load multiple files at once. shapefiles come as a set of multiple files like this example:
(from https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/IU8RQK by @mmukaigawara
In R, we would read this in with
sf::st_read("iraq_districts")
to refer to the whole set of files that start in "iraq_districts". But doing this withdataverse::get_*
in one step is not currently possibleOther datasets like VEST precinct data upload a zipped .zip file instead of the components separately.
What should the guidance be? It is probably too complicated to allow
get_*
to take a vector of filenames. So an alternative is a snippet that downloads multiple files into atempfile()
, and reads from that tempfile?The text was updated successfully, but these errors were encountered: