I´ve just finished a flexdashboard which includes some leaflet maps showing data on migratory bird species distribution and wind farms, beside other layers of interest. I’m trying to host it on github, but I’m facing problems due to the large size of the geoespatial files. So I thougt that perhaps I could keep the large data files in a free repository and read them using some avaliable package.
I used de 'gsheet' package to read part of my data in .xlsx file format and it did work.
install.packages('gsheet')
library(gsheet)
data <- gsheet2tbl('https://drive.google.com/open?id=1tgvOoEMkHRgNTVuHdlO3DikH0cEGsL0X')
View(data)
But I found no way of reading the files in .shp format from the Google Drive.
Anybody with some tips or ideas on how I could solve the problem?
The rds format is used to save any single R object - have a look at the official documentation R: Serialization Interface for Single Objects
It is very helpful for saving intermediary results between sessions, or for sharing with other users. It can be used with remote objects (url's) and uses compression, so it is usually preferable (bandwith wise) to sharing raw files such as shapefiles or what not...