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

transition to sf and terra #7

Closed
simoncarrignon opened this issue Mar 21, 2022 · 2 comments
Closed

transition to sf and terra #7

simoncarrignon opened this issue Mar 21, 2022 · 2 comments

Comments

@simoncarrignon
Copy link

simoncarrignon commented Mar 21, 2022

Title is pretty much self explanatory. The packages sp and raster, actually used by leastcostpath, are going to be replaced soon by sf and terra, while rgdal and rgeos, also used by leastcostpath "will be retired by the end of 2023"
image

It's then probably time to start this transition for leastcostpath!

One issue, and the reason why leastcostpath still relies on sp and raster, is its dependancy to gdistance, which still uses those packages. Thought this has already been mentioned two years ago in: AgrDataSci/gdistance#3, it's not clear if the switch will be done anytime soon. A first, temporary easy fix would be to cast all object into raster and Spatial before calling for gdistances functions.

@josephlewis
Copy link
Owner

This is currently in progress. See dev branch

@josephlewis
Copy link
Owner

leastcostpath version 2.0.0 and onwards will use sf and terra. The dependency on gdistance has been removed

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

2 participants