I'm working through the habitat suitability tutorial at Identify an Ecological Niche for African Buffalo | Learn ArcGIS . as per the instructions, I attempted to use arc.write in RStudio to export my spatial pixels data frame (for which I have assigned the spatial reference as instructed) to a file geodatabase raster by executing arc.write("C:/[file path]/AfricanBuffalo.gdb/Habitat_Suitability_Raster", habitat_suitability)
I get the following message: "Error in .call_proxy("raster.create", .self, source, as.pairlist(args)) : No spatial reference exists." However, if I check the crs with crs(habitat_suitability), I receive "CRS arguments: +proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=