[R-sig-Geo] initGRASS() under linux

Johannes Signer j.m.signer at gmail.com
Mon Jul 25 15:57:42 CEST 2011


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:
> 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
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



More information about the R-sig-Geo mailing list