addons {fasterRaster}R Documentation

Test if addons directory exists and if an addon is installed

Description

These functions handle GRASS addons, which are optional tools that can be installed. Most functions in fasterRaster rely on "base" GRASS tools (not addons), but a few do.

Usage

addons(x = NULL)

installAddon(x, check = TRUE)

removeAddon(x, check = TRUE)

.addons(x)

Arguments

x

Either NULL or a character specifying the name of a GRASS addons tool. If NULL, a vector of installed addons is returned. If a character vector is provided, a logical vector is returned, one per value in x that indicates if the respective addon is installed.

check

Logical: If TRUE, check to see if the addon is available (installAddon())or if it is installed (removeAddon()).

Value

addons(): Logical. The other functions invisibly return a logical value indicating if the operation succeeded or not.

Examples

if (grassStarted()) {

# What addons are installed?
addons()

# Is a specific addon installed?
addons(c("v.centerpoint", "fake.addon"))

}

[Package fasterRaster version 8.4.1.0 Index]