addons {fasterRaster} | R Documentation |
Test if addons directory exists and if an addon is installed
Description
This function tests to see if the "addons" directory specified using faster()
actually exists, and if a particular GRASS addons module is available. The
addonsfolder and module must exists for methods that rely on particular **GRASS**
addonsto work. See
vignette("addons", package = "fasterRaster")'.
Usage
addons(x = NULL, fail = TRUE, verbose = TRUE)
Arguments
x |
Either |
fail |
Logical: If |
verbose |
Logical: If |
Value
Logical.
See Also
vignette("addons", package = "fasterRaster")
Examples
if (grassStarted()) {
# Does the addons folder exist?
ao <- addons(fail = "warning")
if (ao) print("Addons is folder is probably correctly specified.")
# Does this particular module exist?
addon <- "v.centerpoint"
exten <- addons(addon, fail = FALSE)
if (exten) print("Extension `v.centerpoints` is installed.")
}