cropping and masking spatraster converts raster values to 1
I am cropping and masking a spatraster using a spatvector. However after doing it,
all the values in the spatraster is converted to 1. This is the same problem here
https://github.com/rspatial/terra/issues/1473