rOpenGov / eurostat

R tools for Eurostat data
http://ropengov.github.io/eurostat
Other
235 stars 46 forks source link

More options on `get_eurostat_geospatial()` #189

Closed dieghernan closed 4 years ago

dieghernan commented 4 years ago

I love the capability of downloading shapes from GISCO, but there are a couple of features that I miss on the get_eurostat_geospatial() function:

https://github.com/rOpenGov/eurostat/blob/6e10b309aebd6b01c464d97ffaddefd2c16191d0/R/get_eurostat_geospatial.R#L69-L71

As an example, this line works fine just including 2021 as the year:

https://github.com/rOpenGov/eurostat/blob/6e10b309aebd6b01c464d97ffaddefd2c16191d0/R/get_eurostat_geospatial.R#L160

http://ec.europa.eu/eurostat/cache/GISCO/distribution/v2/nuts/geojson/NUTS_RG_60M_2021_4326_LEVL_0.geojson

Both enhancements are quick to implement in my opinion (happy to help with them).

I have another suggestions regarding the accessibility to another GISCO data (countries, boundaries, labels, LAU, Urban Audits… see full GISCO API) but they would imply a deeper review of the source code, so I may open a specific issue on that.

Regards

antagomir commented 4 years ago

Great - the easiest could be if you can make a Pull Request. Seems appropriate to me.

dieghernan commented 4 years ago

The PR is ready now, you can check it here.

I checked on appveyor (OK), however I got an error on travis:

Installing R dist: trusty is no longer supported for language: r

So I just checked on a test branch removing dist: trusty of .travis.yml and it worked to (see here). Now travis used dist: xenial as default.

I just want you to be aware, probably if you trigger now a fake build on this repo´s travis you'll likely to get the same message than I got.

Let me know what you think, regards

antagomir commented 4 years ago

Great, thanks! I will wait until tomorrow to see if there are any comments before I merge.

dieghernan commented 4 years ago

PR accepted so this issue can be closed.

I am working on more contributions related with GISCO data, I'll better open new issues for better tracking.

Many thanks to devs and maintainers

antagomir commented 4 years ago

Thanksss!

dieghernan commented 4 years ago

Sorry to reopen this issue. I have spotted some soft improvements and fixes on this:

PR on the way, regards