[GRASS-user] problem with spgrass6
"António M. Rodrigues"
amrodrigues at fcsh.unl.pt
Mon Mar 29 13:58:28 EDT 2010
Hi,
I've installed spgrass6, which apparently went fine (on my mac).
All the examples I found run R commands from the GRASS console (hence
not being necessary to specify the GRASS LOCATION, etc.
Isn't it possible to specify a GRASS LOCATION from within the R
interface?
In R, I loaded spgrass6, then tried:
> initGRASS("/Applications/grass-6.4.app")
and I get:
/bin/sh: g.gisenv: command not found
/bin/sh: g.gisenv: command not found
/bin/sh: g.gisenv: command not found
/bin/sh: g.gisenv: command not found
/bin/sh: g.gisenv: command not found
Error in if (file.exists(file) == FALSE) if (!missing(asText) &&
asText == :
argument is of length zero
Error in parseGRASS(cmd) : g.region not parsed
sh: g.region: command not found
>
----
If I want to start GRASS and open a specific mapset, would this work?
initGRASS("/Applications/grass-6.4.app", GISdbase="/Users/antonio/
Documents/grass", location="pt_etrs89", mapset="interior")
(well, it doesn't, I'm just not sure why...)
Thank you
António
More information about the grass-user
mailing list