Hi Gabriel, I guess, the syntax is different:
The general syntax is: writeRaster(NameRaster, file="PathOfFolderSTinDesktop/NameFile.tif", format= ""GTiff", overwrite=TRUE) If you want to add options with bands: writeRaster(NameRaster, file="FolderPath/NameFile.tif", format= ""GTiff", overwrite=TRUE, options= c("INTERLEAVE=BAND","COMPRESS=LZW")) NameRaster is a RasterLayer or RasterBrick t in your global environment. Hope this works, Best Yasna On Fri, 26 Mar 2021 at 18:57, Gabriel Cotlier <gabikl...@gmail.com> wrote: > Hello, > > I'm trying to save a raster on workspace as GeoTIFF file into a folder > named ST in Desktop > > writeRaster(x = ST , file = paste(n,"_Rescaled_band",sep=" "), > format="GTiff", overwrite = T) > > and got the following error message : > > Error in .local(x, filename, ...) : > Attempting to write a file to a path that does not exist: > ST > > Thanks for your help. > Regards. > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- *Yasna K Palmeiro Silva.* *Tildes han sido omitidos intencionalmente [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo