[R-sig-Geo] getData returns status 403
Loïc Dutrieux
loic.dutrieux at conabio.gob.mx
Mon Jan 30 20:00:45 CET 2017
Thanks for figuring it out Barry. I informed Robert about it.
Cheers,
Loïc
On 30/01/2017 08:19, Barry Rowlingson wrote:
> On Sun, Jan 29, 2017 at 7:26 PM, Loïc Dutrieux
> <loic.dutrieux at conabio.gob.mx> wrote:
>> world <- getData(name = 'countries')
>
> The world countries file download function has a hardcoded version in it:
>
>> raster:::.countries
> function (download, path, ...)
> {
> filename <- paste(path, "countries.RData", sep = "")
> if (!file.exists(filename)) {
> if (download) {
> theurl <-
> paste("http://biogeo.ucdavis.edu/data/gadm2.6/countries_gadm26.rds",
> sep = "")
>
>
> and everything else is _gadm28 now. The getData function pastes the
> version number "28" into URLS for individual country data.
>
> Suggest you download
> http://biogeo.ucdavis.edu/data/gadm2.8/countries_gadm28.rds manually
> for now and ping Robert Hijmans with a bug report....
>
> Barry
>
> Email secured by Check Point
>
More information about the R-sig-Geo
mailing list