addons | R Documentation |
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")'.
addons(x = NULL, fail = TRUE, verbose = TRUE)
x |
Either |
fail |
Logical: If |
verbose |
Logical: If |
Logical.
vignette("addons", package = "fasterRaster")
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.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.