I'm trying to use ggplot and to add the base map using readRDS, but it doesn't work. Could you please help me to see how to import the base map? Thanks very much.
This is my code
borders <- readRDS(url("https://biogeo.ucdavis.edu/data/gadm3.6/Rsf/gadm36_IRN_0_sf.rds"))
And here is the error message:
Error in readRDS(url("https://biogeo.ucdavis.edu/data/gadm3.6/Rsf/gadm36_IRN_0_sf.rds")) :
cannot open the connection
In addition: Warning message:
In readRDS(url("https://biogeo.ucdavis.edu/data/gadm3.6/Rsf/gadm36_IRN_0_sf.rds")) :
InternetOpenUrl failed: 'The server returned an invalid or unrecognized response'