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.
With the change from raster to terra, the expected input format for raster data is now a list of
spaRaster
objects and notraster
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.