walkerke / tigris

Download and use Census TIGER/Line shapefiles in R
Other
324 stars 45 forks source link

Necessity of curl (through httr)? #187

Closed atkissoncj closed 3 months ago

atkissoncj commented 3 months ago

I am working on a mapping application that I hope to deliver to local computation through WebR (R in web assembly). The curl package is not supported because of how its use of sockets breaks in js code. Is the curl dependency strictly necessary to deliver tigris? If it's not, what would be required to write it out of the package?

walkerke commented 3 months ago

It would require a full refactor of the package, unfortunately. For your app, my recommendation would be to use tigris to download your files, then save them to a server somewhere / your local filesystem which you can mount.

This tends to be my recommendation when using tigris in Shiny apps more broadly as the Census FTP server can have hiccups.

atkissoncj commented 3 months ago

Great. Thanks, Kyle!

Curtis Atkisson

On Tue, Jul 16, 2024 at 8:19 AM Kyle Walker @.***> wrote:

It would require a full refactor of the package, unfortunately. For your app, my recommendation would be to use tigris to download your files, then save them to a server somewhere / your local filesystem which you can mount.

This tends to be my recommendation when using tigris in Shiny apps more broadly as the Census FTP server can have hiccups.

— Reply to this email directly, view it on GitHub https://github.com/walkerke/tigris/issues/187#issuecomment-2231209133, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANULXBGZAPIQGMKLYSE22NTZMU2YTAVCNFSM6AAAAABK5S6RV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZRGIYDSMJTGM . You are receiving this because you authored the thread.Message ID: @.***>