Package for downloading shapefiles using piggyback

Tags: #<Tag:0x00007f683ae72b20> #<Tag:0x00007f683ae72968> #<Tag:0x00007f683ae725d0> #<Tag:0x00007f683ae72418>

rOpenSci package or resource used*


What did you do?

I created a package called {leaidr} to use facilitate the download and use of U.S. school district shapefiles. The shapefile is over GitHub’s allowed limit of 100MB. Originally, I tried to use GitHub LFS as a way to upload the file. Unfortunately, GitHub LFS is not reproducible in that when others download the package, they wouldn’t be able to access the file.

{piggyback} allowed for easy upload of the shapefile as an R Data file to GitHub. In one of the {leaidr} functions, there is a call to download the shapefile into the user’s specified file path. From there, the user can prep and plot the shapefile according to their needs.

URL or code snippet for your use case*



Field(s) of application

K-12, education, policy


Thank you so much for creating {piggyback} and making it available for others to use!

Twitter handle