Re: [R-sig-Geo] getData returns status 403

2017-01-30 Thread Loïc Dutrieux
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
>  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
>

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] getData returns status 403

2017-01-30 Thread Barry Rowlingson
On Sun, Jan 29, 2017 at 7:26 PM, Loïc Dutrieux
 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

___
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo