[R-sig-Geo] getData returns status 403
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Mon Jan 30 15:19:51 CET 2017
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
More information about the R-sig-Geo
mailing list