This function is based on raster::rasterOptions by Robert Hijmans.
waterOptions(overwrite, writeResults, outputFolder, SRTMrepo, autoAoi,
default = FALSE)
Logical. If TRUE and writeResults is TRUE it will overwrite results. If FALSE, results are save with a name with name_datetime.
Logical. If TRUE it'll write result to disk. This is slower but if FALSE you can have out-of-memory problems.
Name of a folder to save files, relative to workind folder.
A folder where SRTM grids are stored, to create DEM. See prepareSRTMdata()
Logical. If TRUE it'll look for a object called aoi on .GlobalEnv and use it as aoi. See createAoi()
Logical. If TRUE will revert all options to defaults values
list of the current options (invisibly). If no arguments are provided the options are printed.
Robert J. Hijmans (2015). raster: Geographic Data Analysis and Modeling. R package version 2.4-18. http://CRAN.R-project.org/package=raster