Skip to content
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

Guidance on downloading and reading multiple files (shp) #132

Open
kuriwaki opened this issue Jan 4, 2024 · 0 comments
Open

Guidance on downloading and reading multiple files (shp) #132

kuriwaki opened this issue Jan 4, 2024 · 0 comments
Milestone

Comments

@kuriwaki
Copy link
Member

kuriwaki commented Jan 4, 2024

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:

image

(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 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?

@kuriwaki kuriwaki added this to the CRAN 0.3.14 milestone Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant