Learn R Programming

Rsagacmd (version 0.0.9)

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)

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.

Value

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