setenvGRASSw: Usually for internally usage, create valid 'GRASS GIS 7.xx'...

View source: R/grassControl.R

setenvGRASSwR Documentation

Usually for internally usage, create valid 'GRASS GIS 7.xx' rsession environment settings according to the selected GRASS GIS 7.x and Windows Version

Description

Initializes and set up access to 'GRASS GIS 7.xx' via the rgrass wrapper or command line packages. Set and returns all necessary environment variables and additionally returns the GISBASE directory as string.

Usage

setenvGRASSw(
  root_GRASS = NULL,
  grass_version = NULL,
  installation_type = NULL,
  jpgmem = 1e+06,
  quiet = TRUE
)

Arguments

root_GRASS

grass root directory i.e. "C:\OSGEO4~1",

grass_version

grass version name i.e. "grass-7.0.5"

installation_type

two options "osgeo4w" as installed by the 'OSGeo4W'-installer and "NSIS" that is typical for a stand_alone installtion of 'GRASS GIS'.

jpgmem

jpeg2000 memory allocation size. Default is 1000000

quiet

boolean switch for supressing console messages default is TRUE

Author(s)

Chris Reudenbach

Examples

## Not run: 
# set choosen'GRASS GIS' installation folders 
setenvGRASSw(root_GRASS = "C:\\PROGRA~1\\QGIS2~1.18",
             grass_version =  "grass-7.2.1",
             installation_type =  "osgeo4W")

## End(Not run)

link2GI documentation built on Aug. 29, 2022, 9:06 a.m.