adamlilith / enmSdmX

Tools for Modeling Niches and Distributions of Species
Other
23 stars 2 forks source link

use terra interface #22

Closed rhijmans closed 7 months ago

rhijmans commented 1 year ago

Hi Adam,

In two instances the enmSdmX package uses

ext <- terra::ext(x)@ptr$vector

That breaks with the development version of terra. The @ptr$ methods are not safe for use in other packages. Can you use the "official" interface instead? Something like this:

ext <- as.vector( terra::ext(x) )

Thanks!

rhijmans commented 1 year ago

Can you please fix this?

adamlilith commented 7 months ago

So sorry! I just saw this. The issue has been fixed.