Hi,

I am trying to run grass from R via the spgrass6 package on MacOSx while
following this nice Wiki. I have installed the spgrass6 package from source
on mac. grass-6.4 is also installed via the great website of KingChaos (
http://www.kyngchaos.com/software/grass).

> library(spgrass6)
Loading required package: sp
Loading required package: rgdal
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.7.2, released 2010/04/23
Path to GDAL shared files:
/Library/Frameworks/GDAL.framework/Versions/1.7/Resources/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009
Path to PROJ.4 shared files: (autodetected)
Loading required package: XML
GRASS GIS interface loaded with GRASS version: (GRASS not running)

when trying the following:
> loc <- initGRASS("/Applications/GRASS-6.4.app", home=tempdir())

I obtain the following error:
/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 system(cmd0, intern = TRUE) : error in running command
Error in parseGRASS(cmd) : g.region not found
sh: g.region: command not found

Is there a solution?

I am learning GRASS at the moment to visualise and explore 3D terrestrial
point lidar datasets (las format) and analyse subsets via R.

Thanks,
Jan

	[[alternative HTML version deleted]]

