Skip to content

initGRASS() under linux

3 messages · Agustin Lobo, Rainer M Krug, Johannes Signer

#
Is it necessary to start R from within the GRASS console to use
spgrass6 under linux?
My understanding was that initGRASS() would let you set the grass environment
not having GRASS actually running.

Thanks

Agus
#
Hello,

yes you can, the following worked for me with Ubuntu 10.10:

initGRASS(gisBase=gisBase,gisDbase=gisDbase, location=name_location,
mapset=name_mapset,override=override)

# execute a command
execGRASS("g.region", parameters=list(res=as.character("1"))

HTH
Johannes
On Mon, Jul 25, 2011 at 9:48 AM, Agustin Lobo <alobolistas at gmail.com> wrote: