oscarperpinan / rastervis

The raster package defines classes and methods for spatial raster data access and manipulation. The rasterVis package complements raster providing a set of methods for enhanced visualization and interaction.
oscarperpinan.github.io/rastervis
GNU General Public License v3.0
85 stars 26 forks source link

adding raster:: to faciliate terra/raster dependency reversal #75

Closed rhijmans closed 3 years ago

rhijmans commented 3 years ago

I am switching the dependency between terra and raster. That is, I am making raster dependent on terra. The reason for the dependency is to avoid name clashes. This is a tricky operation as packages cannot be dependent on each other. So there will be a messy (but hopefully very short) transition period where terra is no longer dependent on raster, and raster not dependent on terra -- leading to name clashes. The proposed changes add "raster::" to some methods such that at least all the examples (R CMD check) still work.

The reason for the switch is that be able methods from rgeos and rgdal that will be retired in the not so far future. Although I had this in mind irrespective of that. In my view, terra is the future and it should not depend on an old package.

oscarperpinan commented 3 years ago

Thanks. Merged now.