Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

saga_env

Parses valid SAGA-GIS libraries and tools into a nested list of functions


Description

Establishes the link to SAGA GIS by generating a SAGA help file and parsing all libraries, tools and options from the help files into a nested list of library, module and options, that are contained within an saga environment object object. Intended to be used internally by saga_gis

Usage

saga_env(saga_bin = NULL, opt_lib = NULL, backend = "raster")

Arguments

saga_bin

An optional character vector to specify the path to the saga_cmd executable. Otherwise the function will perform a search for saga_cmd.

opt_lib

A character vector of a subset of SAGA-GIS tool libraries to generate dynamic functions that map to each tool. Used to save time if you only want to import a single library.

backend

A character vector to specify the library to use for handling raster data. Currently, either "raster" or "terra" is supported. The default is "raster".

Value

A saga environment S3 object containing paths, settings and a nested list of libraries tools and options.


Rsagacmd

Linking R with the Open-Source 'SAGA-GIS' Software

v0.1.0
GPL-3
Authors
Steven Pawley [aut, cre]
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.