Create a new SpatRaster that has the same values as SpatRaster x, except for the cells that are NA (or another maskvalue in another SpatRaster (the 'mask') or not covered by the objects of a SpatVector. These cells become NA (or another updatevalue).