Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies on rgdal and rgeos #18

Closed
rCarto opened this issue Jun 7, 2023 · 3 comments
Closed

Dependencies on rgdal and rgeos #18

rCarto opened this issue Jun 7, 2023 · 3 comments

Comments

@rCarto
Copy link

rCarto commented Jun 7, 2023

I've heard of this package during a talk in Sageo conf.
How dependent is it on rgdal and rgeos?
These packages will retire soon.
CRAN packages have received these kind of warning :
riatelab/cartography#85

Detailed post on this matter: Upcoming changes to popular R packages for spatial data: what you need to do

You may be well aware of these changes, if so I am sorry to bother you with this.

cheers,

T.

@jbferet
Copy link
Owner

jbferet commented Jun 8, 2023

thank you for your suggestion.
Yes indeed, biodivMapR currently depends on rgdal (GDALinfo, readOGR, writeOGR) and rgeos (gBuffer).
I noticed the warnings you mentioned and this is on my to do list. Multiple parts of the code need to be refreshed, and I am planning on using terra and sf instead of raster, stars and sp.

This should be done in a next release, hopefully soon!
Thank you for this reminder, this will but these back on the top of the pile.

cheers,
jb

@floriandeboissieu
Copy link
Collaborator

I got the following message while doing a devtools::document() of the package:

ℹ Loading biodivMapR
The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
which was just loaded, will retire in October 2023.
Please refer to R-spatial evolution reports for details, especially
https://r-spatial.org/r/2023/05/15/evolution4.html.
It may be desirable to make the sf package available;
package maintainers should consider adding sf to Suggests:.
The sp package is now running under evolution status 2
     (status 2 uses the sf package in place of rgdal)
Please note that rgdal will be retired during October 2023,
plan transition to sf/stars/terra functions using GDAL and PROJ
at your earliest convenience.
See https://r-spatial.org/r/2023/05/15/evolution4.html and https://github.com/r-spatial/evolution
rgdal: version: 1.6-7, (SVN revision 1203)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 3.4.1, released 2021/12/27
Path to GDAL shared files: /usr/share/gdal
GDAL binary built with GEOS: TRUE 
Loaded PROJ runtime: Rel. 8.2.1, January 1st, 2022, [PJ_VERSION: 821]
Path to PROJ shared files: /home/boissieu/.local/share/proj:/usr/share/proj
PROJ CDN enabled: TRUE
Linking to sp version:2.0-0
To mute warnings of possible GDAL/OSR exportToProj4() degradation,
use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.

jbferet added a commit that referenced this issue Sep 16, 2023
## Fix
- remove dependency to rgdal and rgeos (issue #18)
@jbferet
Copy link
Owner

jbferet commented Oct 3, 2023

closing issues as the dependency has been solved.
thanks @rCarto @floriandeboissieu !

@jbferet jbferet closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants