JeremyGelb / geocmeans

An R package to perform Spatial Fuzzy C-means
GNU General Public License v2.0
27 stars 2 forks source link

Check if the data provided are SpatRaster #5

Closed JeremyGelb closed 1 year ago

JeremyGelb commented 1 year ago

With the change from raster to terra, the expected input format for raster data is now a list of spaRaster objects and not raster objects. If one gives rasters object, the error produced is not helpful.

geocmeans should test the type of object given and return an error if they are not from the expected class.

JeremyGelb commented 1 year ago

Corrected with version 0.3.3.9000