8Ginette8 / gbif.range

An R package to generate species range maps based on ecoregions and a user-friendly GBIF wrapper
MIT License
15 stars 1 forks source link

dependencies on sp still. Probably solvable with no sourcing of raster or specifying sf:: #4

Closed ohagen closed 9 months ago

ohagen commented 11 months ago

plot(ne_countries(type = "countries"),col="#bcbddc") Warning: The returnclass argument of ne_download() sp as of rnaturalearth 1.0.0. ℹ Please use sf objects with {rnaturalearth}, support for Spatial objects (sp) will be removed in a future release of the package. Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double' Calls: plot -> plot.default -> xy.coords

8Ginette8 commented 9 months ago

Solved, normally the example does not call anymore any sp objects...

ohagen commented 9 months ago

Thanks! I struggled today with some points and non sf objects ... hope we have them all.