- saga_bin
The path to saga_cmd executable. If this argument
is not supplied then an automatic search for the saga_cmd executable will
be performed.
- grid_caching
A logical whether to use file caching in saga_cmd
geoprocessing operations for rasters that are too large to fit into memory.
- grid_cache_threshold
A number to act as a threshold (in Mb) before
file caching is activated for loaded raster data.
- grid_cache_dir
The path to directory for temporary files generated by
file caching. If not provided then the result from `base::tempdir()` is
used.
- cores
An integer for the maximum number of processing cores. By
default all cores are utilized. Needs to be set to 1 if file caching is
activated.
- raster_backend
A character vector to specify the library to use for
handling raster data. Supported options are "terra" or "stars".
The default is "terra".
- vector_backend
A character to specify the library to use for handling
vector data. Currently, "sf", "SpatVector" or "SpatVectorProxy" is
supported. The default is "sf", however for large vector datasets, using
the "SpatVectorProxy" backend from the `terra` package has performance
advantages because it allows file-based which can reduce repeated
reading/writing when passing data between R and SAGA-GIS.
- raster_format
A character to specify the default format used to save
raster data sets that are produced by SAGA-GIS. Available options are one
of "SAGA", "SAGA Compressed" or "GeoTIFF". The default is "SAGA".
- vector_format
A character to specify the default format used for
vector data sets that are produced by SAGA-GIS, and also used to save
in-memory objects to be read by SAGA-GIS. Available options are of of "ESRI
Shapefile", "GeoPackage", or "GeoJSON". The default is "ESRI Shapefile" for
SAGA versions < 7.0 and GeoPackage for more recent versions. Attempting to
use anything other than "ESRI Shapefile" for SAGA-GIS versions < 7.0 will
raise an error.
- all_outputs
A logical to indicate whether to automatically use
temporary files to store all output data sets from each SAGA-GIS tool.
Default = TRUE. This argument can be overridden by the `.all_outputs`
parameter on each individual SAGA-GIS tool function that is generated by
`Rsagacmd::saga_gis()`.
- intern
A logical to indicate whether to load the SAGA-GIS
geoprocessing results as an R object, default = TRUE. For instance, if a
raster grid is output by SAGA-GIS then this will be loaded as either as
a `SpatRaster` or `stars` object, depending on the `raster_backend`
setting that is used. Vector data sets are always loaded as `sf` objects,
and tabular data sets are loaded as tibbles. The `intern` settings for the
`saga` object can be overridden for individual tools using the `.intern`
argument.
- opt_lib
A character vector with the names of a subset of SAGA-GIS
libraries. Used to link only a subset of named SAGA-GIS tool libraries,
rather than creating functions for all available tool libraries.
- temp_path
The path to use to store any temporary files that are
generated as data is passed between R and SAGA-GIS. If not specified, then
the system `base::tempdir()` is used.
- verbose
Logical to indicate whether to output all messages made during
SAGA-GIS commands to the R console. Default = FALSE. This argument can be
overriden by using the `.verbose` argument on each individual SAGA-GIS tool
function that is generated by `Rsagacmd::saga_gis()`.