The type of object returned depends on the intern argument passed to the rsaga.geoprocessor(). For intern=FALSE it is a numerical error code (0: success), or otherwise (default) a character vector with the module's console output.
Arguments
in.dem
input: digital elevation model (DEM) as SAGA grid file (default file extension: .sgrd)
in.sinkroute
optional input: sink route grid file
out.dem
output: modified DEM
method
character string or numeric value specifying the algorithm (partial string matching will be applied): "deepen drainage route" (or 0): reduce the elevation of pixels in order to achieve drainage out of the former sinks "fill sinks" (or 1): fill sinks until none are left
...
optional arguments to be passed to rsaga.geoprocessor(), including the env RSAGA geoprocessing environment
Author
Alexander Brenning (R interface), Olaf Conrad (SAGA module)