Learn R Programming

link2GI (version 0.5-3)

searchGRASSX: Return attributes of valid 'GRASS GIS' installation(s) in 'Linux'

Description

Searches recursively for valid 'GRASS GIS' installations at a given 'Linux' mount point. Returns attributes for each installation.

Usage

searchGRASSX(MP = "/usr/bin", quiet = TRUE)

Value

A dataframe containing 'GRASS GIS' binary folder(s) (i.e. where the individual GRASS commands are installed), version name(s) and installation type code(s)

Arguments

MP

default is /usr. This is the directory from which the grass executable file is searched, i.e. one executable for each GRASS installation on the system.

quiet

boolean switch for supressing console messages default is TRUEs

Author

Chris Reudenbach

Examples

Run this code
if (FALSE) {
# get all valid 'GRASS GIS' installation folders in the /usr/bin directory (typical location)
searchGRASSX("/usr/bin")

# get all valid 'GRASS GIS' installation folders in the home directory
searchGRASSX("~/")
}

Run the code above in your browser using DataLab