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
Fix bug due to change in terra's SpatExtent #79
Conversation
SpatExtent objects no longer contain the @ptr slot. Using as.vector() around a SpatExtent object retrieves the extent coordinates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. However, this needs to condition on terra
versions. Could you please check which version brought in the change? If say 3 months ago, we could also add that version as a minimum in DESCRIPTION
, if more recent, we need to condition. We may need to condition in code anyway for users of Windows or macOS terra binaries from CRAN for R 4.2.
The slot formerly |
I do not think you need to condition on version. The breaking code uses the |
@rhijmans Thanks, I understand. No revdep checks are run on examples when GRASS is absent - all the examples run with GRASS. I'll adapt and apply. |
Thanks. I should also have searched https://github.com/cran. Doing so today helped me find a few more cases that do not show up in reverse dependency checking. |
I should have looked more carefully when writing the code originally. Revised version on CRAN now. |
SpatExtent
objects no longer contain the@ptr
slot. Usingas.vector()
around aSpatExtent
object retrieves the extent coordinates.