ropensci / rnaturalearth

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

install of hires data glitch... #37

Closed ryanpeek closed 3 years ago

ryanpeek commented 3 years ago

Hi, great package, just wanted to mention a glitch in installing the hires data...

When running the following code: mex_sf <- ne_states(country="Mexico", returnclass = "sf")

I'm asked to install the hires data...but upon trying to do so I get an error message: "Connection not found".

I went to this repo and followed the readme code:

install.packages("rnaturalearthhires",
                 repos = "http://packages.ropensci.org",
                 type = "source")

This also didn't work. I got several different error messages but largely centered around "no connection".

When using the following, everything installs without any trouble: devtools::install_github("ropensci/rnaturalearthhires")

Suggest editing the README so the install info matches the above. I'm not sure why the other option via install.packages breaks, but with devtools no problem.

I'm using R 4.0.3, on Mojave 10.14.6 and have the most updated {sf} and {rnaturalearth} versions.

jaseeverett commented 3 years ago

I had the same problem on macOS Big Sur. Installing from GitHub worked perfectly. Thanks for the tip. devtools::install_github("ropensci/rnaturalearthhires")

andysouth commented 3 years ago

Thanks @ryanpeek @jaseeverett

Strange, I've just checked on windows and this does work for me.

install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")

@sckott do you know a reason why that doesn't work on macOS ?

sckott commented 3 years ago

Not sure why that install using packages.ropensci.org didn't work. worked for me, but i'm not on big sur yet. There's also install.packages("rnaturalearthhires", repos = "https://dev.ropensci.org") - that should have binaries for windows/macos

jaseeverett commented 3 years ago

Hmm. Very weird. I just tried again and it works for me now. I tried on about 3 seperate occasions last week and it wouldn't work. Thanks for looking into it @sckott and @andysouth

ryanpeek commented 3 years ago

Same, I'm on Mojave still and it worked just now when I tried. Something has been updated or is now correctly linked. I'll close this issue now. Thanks all!