I am getting the following error from arc.write:
Error in .call_proxy("raster.create", .self, source, as.pairlist(args)) :
No spatial reference exists.
Full call in R:
arc.write(file.path(pathGDB, rasterNameDefault),
rasterDefault,
overwrite = TRUE)
"rasterNameDefault" is a character string. "pathGDB" is the full path to the local GDB. (It is a long path.) "rasterDefault" is a raster layer created with the raster package (via dismo::predict).
I verified the raster has a projection assigned.
> rasterDefault
class : RasterLayer
dimensions : 240, 130, 31200 (nrow, ncol, ncell)
resolution : 845.2344, 845.2344 (x, y)
extent : 353440.7, 463321.2, 4010519, 4213375 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=11 +datum=NAD83 +units=m +no_defs +ellps=GRS80 +towgs84=0,0,0