rnaturalearthhires icon indicating copy to clipboard operation
rnaturalearthhires copied to clipboard

ne_download() tries wrong URL

Open alexkrohn opened this issue 2 years ago • 0 comments

Hi there,

I'm running rnaturalearth version 0.1.0 on R 4.1.0. When I try to use ne_download() to download the rivers dataset, the function tries URL: "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_rivers_lake_centerlines.zip" It seems like an extra URL got in there, but I'm not sure how to fix it. Is this a bug on my end or your end?

I installed rnaturalearth from CRAN, but had to install rnaturalearthhires from GitHub.

Thanks,

Alex

code: rivers <- ne_download(scale = 50, type = 'rivers_lake_centerlines', category = 'physical', returnclass = "sf") trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_rivers_lake_centerlines.zip' Error in utils::download.file(file.path(address), zip_file <- tempfile()) : cannot open URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/physical/ne_50m_rivers_lake_centerlines.zip'

alexkrohn avatar Sep 01 '21 16:09 alexkrohn