Closed AMBarbosa closed 2 years ago
I am having the same error:
library(geodata)
#> Loading required package: terra
#> terra version 1.4.11
library(raster)
#> Loading required package: sp
tdir <- tempdir()
geodata::population(year=2015,res=.5,path=tdir)
#> Warning in utils::download.file(url = url, destfile = filename,
#> quiet = quiet, : URL 'https://biogeo.ucdavis.edu/data/geodata/pop/
#> gpw_v4_population_density_rev11_2015_30s.tif': status was 'Couldn't connect to
#> server'
#> Error in utils::download.file(url = url, destfile = filename, quiet = quiet, :
#> cannot open URL 'https://biogeo.ucdavis.edu/data/geodata/pop/gpw_v4_population_density_rev11_2015_30s.tif'
#> Error in .downloadDirect(url, filepath, ...): download failed
Sorry, the server is down if for maintenance. Should be back up again by Tue or Wed.
This appears to be working again.
I am still having trouble downloaded data using geodata
:
library(geodata)
#> Loading required package: terra
#> terra version 1.4.11
library(raster)
#> Loading required package: sp
tdir <- tempdir()
geodata::population(year=2015,res=.5,path=tdir)
#> Warning in utils::download.file(url = url, destfile = filename,
#> quiet = quiet, : URL 'https://biogeo.ucdavis.edu/data/geodata/pop/
#> gpw_v4_population_density_rev11_2015_30s.tif': status was 'Couldn't connect to
#> server'
#> Error in utils::download.file(url = url, destfile = filename, quiet = quiet, :
#> cannot open URL 'https://biogeo.ucdavis.edu/data/geodata/pop/gpw_v4_population_density_rev11_2015_30s.tif'
#> Error in .downloadDirect(url, filepath, ...): download failed
Created on 2022-04-08 by the reprex package (v2.0.0)
That actually works for me now.
Strange. Perhaps @AMBarbosa could check if it is working? If so, I can open a new issue. If not, I will know it is only on my end.
I now see why. The CRAN version uses a different URL that is not yet working. The github version is working.
Thank you. I reinstalled from Github on my personal computer and the code runs.
All geodata functions (at least all the several ones I've tried) have been giving 'Couldn't connect to server' errors since yesterday. Looks like the server is down?