I posted this question the other week but it didn't get any response, hope it's okay to post again. Here's some code:
#!/usr/bin/Rscript --vanilla
library(tigris)
shp <- tracts(state = 'New York', county = 'New York')
print(shp)
I can run this code from the console perfectly, but when I try to run it from terminal (osx 10.10.5) I get the empty SpatialPolygons object seen here:
Is there something I'm doing wrong? This seems like super basic but I can't figure it out - thank you so much for any help.