Giter VIP home page Giter VIP logo

rnaturalearthhires's Introduction

rnaturalearthhires

An R package to store high resolution data for the rnaturalearth package.

Data in rnaturalearth packages :

  • rnaturalearth : one low resolution example file & data can be downloaded from NaturalEarth using ne_download()
  • rnaturalearthdata : low (scale 110) and medium resolution (scale 50) files
  • rnaturalearthhires : high resolution (scale 10) files

Installation

remotes::install_github("ropensci/rnaturalearthhires")

install.packages("rnaturalearthhires", repos = "https://ropensci.r-universe.dev", type = "source")

Note rnaturalearthhires is unlikely to be submitted to CRAN because its size exceeds CRAN recommendations.

ropensci_footer

rnaturalearthhires's People

Contributors

andysouth avatar mps9506 avatar pmassicotte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

rnaturalearthhires's Issues

installation attempt fails: "error reading from connection"

I'm trying to run the command ne_countries(scale = 10) in R 3.6.1. I'm encountering an error when trying to install rnaturalearthhires (see below). A Google search doesn't bring up information about what causes this error. Can you please advise?

> ne_countries(scale = 10)
The rnaturalearthhires package needs to be installed.
Install the rnaturalearthhires package? 

1: Yes
2: No

Selection: 1
Installing the rnaturalearthhires package.
Installing package into ‘/home/mgastner/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
Error in value[[3L]](cond) : 
  Failed to install the rnaturalearthhires package.
  Please try installing the package for yourself using the following command: 
     install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")
> install.packages("rnaturalearthhires", repos = "http://packages.ropensci.org", type = "source")
Installing package into ‘/home/mgastner/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
Error in install.packages : error reading from connection

New repo to install the package?

Hi,

I was trying to install the package using the following code:

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

and I got an error:

Error in install.packages : error reading from connection

After that, I tried changing the repo URL to the ropensci r-universe and it worked perfectly.

install.packages("rnaturalearthhires", repos = "https://ropensci.r-universe.dev", type = "source")

I hope this helps others :)

Unexpected warning for sp objects

rnaturalearth::ne_states("India")
#> The `returnclass` argument of `ne_download()` sp as of rnaturalearth 1.0.0.
#> ℹ Please use `sf` objects with {rnaturalearth}, support for Spatial objects (sp)
#> will be removed in a future release of the package.

I did not specify returnclass. Need to use returnclass = "sf" to silence the warning.

Should rnaturalearthhires return sf objects by default?

Can't download lakes data due to link issue in ne_download()?

I am brand new to rnaturalearth. I finally got the rnaturalearthhires package installed: I think it is the http in the url vs the https url where I can go and find a zip file of the data:

No data: http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_lakes.zip

Data available: https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_lakes.zip

I used:

lakes110 <- ne_download(scale = 110, type = 'lakes', category = 'physical')
Result:
trying URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_lakes.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/physical/ne_110m_lakes.zip'
In addition: Warning message:
In utils::download.file(file.path(address), zip_file <- tempfile()) :
cannot open URL 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/physical/ne_110m_lakes.zip': HTTP status was '500 Internal Server Error'

I hope I have asked this in the correct place. Thanks for your time.

Unable to install after upgrading to R 4.0.2

Hello! Thank you for this package, I have found it super useful.

Is this package able to be installed on R v4.0.2, and if not yet, could you share an expected timeline on when it might be? I see its counterpart rnaturalearth package already installs just fine.

  • My RStudio: Version 1.3.1056
  • My OS: Ubuntu 20.04.1 LTS (64-bit)

I had this package installed and working fine on my R v3.6, but after I updated my R today, this package is not installing: when I try install.packages("rnaturalearthhires") in my RStudio console, I get the following -

Installing package into ‘MY FOLDER FOR R v4.0’ (as ‘lib’ is unspecified) Warning in install.packages : package ‘rnaturalearthhires’ is not available (for R version 4.0.2)

Thank you!

Installation failure

Hi there

In an attempt to install via:
install_github("ropensci/rnaturalearthhires")
I received a strange generic error:

Downloading GitHub repo ropensci/rnaturalearthhires@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/ropensci/rnaturalearthhires/tarball/HEAD' failed

Not sure what's going on there. Any help would be appreciated

ne_download() tries wrong URL

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.