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

Retired rgdal and maptools dependencies prevent installation on recent R versions #9

Open
kmkamilkhel opened this issue Oct 20, 2024 · 0 comments

Comments

@kmkamilkhel
Copy link

Issue Description:

I am facing installation issues with the landmap package due to its dependencies on rgdal and maptools, which have been retired from CRAN as of October 2023. The installation fails because these packages are no longer available, and the functionality they provided has been replaced by newer packages like sf, terra, and stars.

Error Output:

arduino
Copy code
ERROR: dependencies 'rgdal', 'maptools' are not available for package 'landmap'
Suggested Solution: To ensure compatibility with modern R versions, I propose updating the package by replacing rgdal and maptools with the following modern alternatives:

Replace rgdal functions with sf (e.g., sf::st_read() instead of rgdal::readOGR()).
Replace maptools functionalities with terra for raster operations.
This update will maintain the functionality of the package while ensuring users can install it on recent R versions without issue.

Steps to Reproduce:

Run the following command in R 4.4.1 or later:
r
Copy code
devtools::install_github("envirometrix/landmap")
Installation fails due to missing dependencies rgdal and maptools.
Additional Comments: I am happy to help with testing and contribute to this transition if necessary.

Thank you for your work on this package!

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

1 participant