the path should be : /Application/GRASS-6.4.app/Contents/MacOS
epy$ ls AUTHORS bin grass.sh CHANGES bwidget include COPYING docs lib GPL.TXT driver man GRASS etc scripts REQUIREMENTS.html fonts Il giorno 22/nov/2010, alle ore 16.49, Roger Bivand ha scritto: > On Mon, 22 Nov 2010, Jan Verbesselt wrote: > >> 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()) > > What this is saying is that the string is not "the directory path to GRASS > binaries and libraries" for your platform. For me: > >> list.files("/home/rsb/topics/grass/g640/grass-6.4.0") > [1] "AUTHORS" "bin" "bwidget" > [4] "CHANGES" "COPYING" "docs" > [7] "driver" "etc" "fonts" > [10] "GPL.TXT" "include" "lib" > [13] "man" "REQUIREMENTS.html" "scripts" > [16] "tools" > > so when you see something similar for the directory path on your system, you > will have found the incantation. > > If you don't make progress, please consider moving this thread to the > grass-stats list: > > http://lists.osgeo.org/mailman/listinfo/grass-stats > > where there may be users with the same platform. > > Roger > >> >> 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]] >> >> _______________________________________________ >> R-sig-Geo mailing list >> R-sig-Geo@stat.math.ethz.ch >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> > > -- > 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.biv...@nhh.no > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-geo _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo