This alternative to
raster::mask is included here.
SpatialPolygons object. If it is not in the same projection
x, it will be reprojected on the fly to that of
'AUTO'. This will be used if gdalwarp is
'AUTO' will calculate 90% of the total
number of cores in the system, while an integer or rounded
float will be passed as the exact number of cores to be used.
"force". This is defunct; internals now can use
options("reproducible.useTerra" = TRUE), which is not (yet)
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
options('reproducible.verbose' = 0) to reduce to minimal
TRUE, then the message about this function
being deprecated will be suppressed.
Raster* object, masked (i.e., smaller extent and/or
several pixels converted to NA)