Linking R with the Open-Source 'SAGA-GIS' Software
Overview
Provides an R scripting interface to the open-source 'SAGA-GIS' (System for Automated Geoscientific Analyses Geographical Information System) software. 'Rsagacmd' dynamically generates R functions for every 'SAGA-GIS' geoprocessing tool based on the user's currently installed 'SAGA-GIS' version. These functions are contained within an S3 object and are accessed as a named list of libraries and tools. This structure facilitates an easier scripting experience by organizing the large number of 'SAGA-GIS' geoprocessing tools (>700) by their respective library. Interactive scripting can fully take advantage of code autocompletion tools (e.g. in 'RStudio'), allowing for each tools syntax to be quickly recognized. Furthermore, the most common types of spatial data (via the 'terra', 'sp', and 'sf' packages) along with non-spatial data are automatically passed from R to the 'SAGA-GIS' command line tool for geoprocessing operations, and the results are loaded as the appropriate R object. Outputs from individual 'SAGA-GIS' tools can also be chained using pipes from the 'magrittr' and 'dplyr' packages to combine complex geoprocessing operations together in a single statement. 'SAGA-GIS' is available under a GPLv2 / LGPLv2 licence from https://sourceforge.net/projects/saga-gis/ including Windows x86/x64 and macOS binaries. SAGA-GIS is also included in Debian/Ubuntu default software repositories. Rsagacmd has currently been tested on 'SAGA-GIS' versions from 2.3.1 to 9.5.1 on Windows, Linux and macOS.
Install
Health
- OK13 OK2026-09-08
- WARNING12 OK, 1 WARNING2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 43 (24 internal)includes a package overview page
- Examples that run
- 27%4 run in a plain check · 11 never run
- Exported functions with examples
- 56%
- Documented parameters
- 100%
- Return-value docs
- 83%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 22
- Median days to close, 50 most recently updated closed PRs
- 0
10 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/stevenpawley/rsagacmd on 2026-10-21.
The R CMD check workflow runs on Linux
Show all practicesHide 2 practices
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.4.3Latest
- RR 4.4.0 released · 2024-04-24
- 0.4.22023-10-16 · diff ↗
- 0.4.12023-06-21 · diff ↗
- 0.4.02023-05-26 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2.02022-04-04 · diff ↗ ·
removed 1 export
saga_searchadded 4 exports
convert_sagaext_r, read_srtm, saga_docs, search_saga - 0.1.2
- 0.1.1
- RR 4.1.0 released · 2021-05-18
- 0.1.02021-01-11 · diff ↗ ·
added 4 exports
saga_execute, saga_version, show_raster_formats, show_vector_formats - 0.0.92020-06-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2019-07-23
- Total releases
- 12 / 7 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 2.10
- Download size
- 706 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Rsagacmd")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.