find_grass: Try to locate a user's GRASS GIS installation

View source: R/grass.r

find_grassR Documentation

Try to locate a user's GRASS GIS installation

Description

Locates a grass installation in common locations on Mac, Windows, and Linux. This is normally run automatically when the package is loaded. If multiple installations are present, then we preferably take whichever version is called "grass" and is in the users PATH. If that doesn't work, we look for grass80, grass78, grass76, and grass74 in the path, in that order.

Usage

find_grass()

Details

In some (many?) cases, this function will fail to find a grass installation, or users may wish to specify a different version than what is detected automatically. In these cases, it is possible to manually specify the grass location using options(gisBase = "path/to/grass").

Value

The path to the user's grass location, or NULL if not found


flee-group/watershed documentation built on July 25, 2022, 12:46 p.m.