Closed sou-github2024 closed 4 months ago
This is expected. The manual shows that the rast
method for signature 'character' (filename) does not have an argument "crs"
rast(x, subds=0, lyrs=NULL, drivers=NULL, opts=NULL,
win=NULL, snap="near", vsi=FALSE, raw=FALSE)
If it is necessary to change the crs of a SpatRaster you could do
t2 <- rast("test.tif")
crs(t2) <- "epsg:4326"
argument crs= does not operate!