The ls.socrata() function supports the listing of all data on a data portal while read.socrata(). Thus, the two can be combined under export.socrata() to download all of the files a neatly compress and place them in a single directory.
This sort of functionality can be used by people wishing to archive data portals or help in the migration of one platform to another one. The function should be focused on saving the data to a local or cloud-based storage (e.g., S3) and should avoid loading all of the data into memory.
Solving #124 will allow an easier integration between ls.socrata() and read.socrata(), so RSocrata v1.7.2-7 or above will be required.
An initial alpha is on this gist. This is now on the issue126 branch. Feedback is encouraged as I've done limited testing at this point.
The
ls.socrata()function supports the listing of all data on a data portal whileread.socrata(). Thus, the two can be combined underexport.socrata()to download all of the files a neatly compress and place them in a single directory.This sort of functionality can be used by people wishing to archive data portals or help in the migration of one platform to another one. The function should be focused on saving the data to a local or cloud-based storage (e.g., S3) and should avoid loading all of the data into memory.
Solving #124 will allow an easier integration between
ls.socrata()andread.socrata(), so RSocrata v1.7.2-7 or above will be required.data.cityofchicago.org/)export.socrata()to avoid throttlingdata.framefriendly, but JSON downloads faster from Socrata)An initial alpha is on this gist.This is now on theissue126branch. Feedback is encouraged as I've done limited testing at this point.