I\'m writing a dataset to file in ERMapper format (.ers) using the Raster package in R, but I\'m having issues with the resulting .aux.xml auxiliary file (which I\'m actuall
Options related to the GDAL file format drivers can be set using the (not so easy to find) rgdal::setCPLConfigOption function.
rgdal::setCPLConfigOption
In your case,
rgdal::setCPLConfigOption("GDAL_PAM_ENABLED", "FALSE")
should disable the xml file creation.
xml
HTH