Determine SAGA GIS version.
list, setting up a SAGA geoprocessing environment as created by
additional arguments to
The function first attempts to determine the SAGA version directly through a system call
saga_cmd --version, which is supported by SAGA GIS 2.0.8+. If this fails,
saga_cmd -h is called, and it is attempted to extract the version number of the SAGA API from the output generated, which works for 2.0.4 - 2.0.7.
A character string defining the SAGA GIS (API) version. E.g.,
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: myenv <- rsaga.env() myenv$version # rsaga.env actually calls rsaga.get.version: rsaga.get.version() # I keep several versions of SAGA GIS in SAGA-GIS_2.0.x folders: myenv05 = rsaga.env(path = "C:/Progra~1/SAGA-GIS_2.0.5", version = NA) # Check if it's really version 2.0.5 as suggested by the folder name: rsaga.get.version(env = myenv05) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.