setGRASS: Function to initialize rgrass

Description Usage Arguments Value Examples

View source: R/setGRASS.R

Description

Function to initialize rgrass

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
setGRASS(
  gisBase = "/usr/lib/grass78",
  home = tempdir(),
  gisDbase = tempdir(),
  location = "grassdata",
  mapset = "PERMANENT",
  override = TRUE,
  flags = c("c", "quiet"),
  epsg = 25829
)

Arguments

gisBase

Location of the grass78 library

home

Temporal file by default

gisDbase

Temporal file by default

location

Main folder for importing and processing

mapset

Subfolder for importing and processgin

override

TRUE by default

flags

Options for rgrass7 package

epsg

By default set to 25829

Value

There is no output, just setting the grass paths, flags...

Examples

1
2
3
4
5
6
7
8
## Not run: 
# linux
setGRASS(gisBase = '/usr/lib/grass78', epsg= 25829)

# Windows
# Not working yet...

## End(Not run)

cesarkero/IterativeSteinerTree documentation built on May 17, 2020, 4:38 p.m.