[GRASS-stats] Re: [R-sig-Geo] readRAST6() in {spgrass6}

Rainer M Krug r.m.krug at gmail.com
Thu May 19 09:35:26 EDT 2011


Hi Roger,

On Wed, May 18, 2011 at 7:56 AM, Roger Bivand <Roger.Bivand at nhh.no> wrote:
> I do not have your location, so cannot check. It appears that your workflow
> is highly non-standard - which you have not made clear previously. If you
> are using spgrass6 to interface R with an existing GRASS location - which
> seems to be the case, you should not use initGRASS(), and should not use the
> PERMANENT mapset. The initGRASS() function is for creating one-time,
> throwaway GRASS locations to use GRASS modules from R when no GISDBASE or
> LOCATION is required.

Could you please give some explanation, why the initGRASS() function
should *not* be used when accessing an existing location? I use it
extensively in my simulations to create a new mapset in a already
existing location and I haven't experienced any problems which I would
link to that.
What kind of problems could occur, or why is this the non-standard
usage of initGRASS()? I always assumed, that the idea is that
initGRASS() actually replaces the "running R inside GRASS" approach?

Cheers,

Rainer


>
> --
> Roger Bivand
> Economic Geography Section, Department of Economics, Norwegian School of
> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
> e-mail: Roger.Bivand at nhh.no
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug


More information about the grass-stats mailing list