Calculate a buffer around all cells that are not NA in a SpatRaster, or around the objcts in a SpatVector (t.b.d.)
Note that the distance unit of the buffer width parameter is meters if the SpatRaster CRS is (+proj=longlat), and in map units (typically also meters) if not.