ropensci / rnaturalearth

An R package to hold and facilitate interaction with natural earth map data :earth_africa:
http://ropensci.github.io/rnaturalearth/
Other
217 stars 23 forks source link

URL used to download data from Natural Earth using `ne_download` repeats domain #87

Closed breslowday closed 1 year ago

breslowday commented 1 year ago

It appears as if the domain (naturalearthdata.com is appended twice to the URL call, resulting in a 404 error.

Reproduce the error with the following code:

pop_places <- ne_download(type = 'populated_places')

Response:

trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip'
Error in utils::download.file(file.path(address), zip_file <- tempfile()) : 
  cannot open URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip'
In addition: Warning message:
In utils::download.file(file.path(address), zip_file <- tempfile()) :
  cannot open URL 'https://www.naturalearthdata.com/http/www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip': HTTP status was '404 Not Found'