Johannes,<div><br></div><div>Control-click on the GRASS.app and you'll get a popup menu; select "Show Package Contents" — this opens you to the directory structure:</div><div><br></div><div>Go to Contents->MacOS which would be "GISBASE"; So, in my case, GISBASE is /HD/Applications/Grass-6.4/Contents/MacOS</div>
<div><br></div><div>If you Command-click at the top of the window on the folder icon beside "MacOS" (from the line above this one), you can see the full path.</div><div><br></div><div>Regards,</div><div>Tom<br><br>
<div class="gmail_quote">On Tue, Feb 14, 2012 at 7:00 AM, Johannes Radinger <span dir="ltr"><<a href="mailto:JRadinger@gmx.at">JRadinger@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Roger Bivand recommend this list to be more suitable for my sort<br>
of question the R-sig-geo.<br>
I'd like to use R outside a running GRASS session.<br>
With the R package 'spgrass6' I can initiate a GRASS session (using<br>
the function initGRASS). Therefore I need the path of the GISBASE.<br>
I am working on Max OSX and my GRASS 6.5 has been selfcompiled and installed via the command console (sudo make install). The programm is<br>
now here: "/Applications/GRASS-6.5.app"<br>
What is now the correct path to my GISBASE or how can I find this out?<br>
<br>
Does anyone have experience with that? This refers to that topic:<br>
<a href="http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#GRASS_databases" target="_blank">http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly#GRASS_databases</a><br>
although it is still not clear how to find out where my GISBASE is on my Mac?<br>
<br>
Any suggestions?<br>
<br>
Best regards,<br>
Johannes<br>
<br>
On Tue, 14 Feb 2012, Johannes Radinger wrote:<br>
<br>
> Hello,<br>
><br>
> I want to use spgrass6 in an R session outside GRASS on Mac OSX.<br>
> Therefore I want to use initGRASS to set some needed environmental<br>
> variables etc. initGRASS() needs gisBase as one parameter which is the<br>
> direcotry path to the GRASS binaries. What is the standard path on Mac<br>
> OS X? My GRASS.app is in / /Applications/GRASS-6.5.app...<br>
><br>
> so I tried following two approaches so far without success:<br>
<br>
Please ask on statgrass or grass-users with reference to:<br>
<br>
<a href="http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly" target="_blank">http://grass.osgeo.org/wiki/Working_with_GRASS_without_starting_it_explicitly</a><br>
<br>
saying how you installed OSX GRASS. The views that OSX and R or Python or<br>
other scripting languages have of the file system may well differ a good<br>
deal.<br>
<br>
Roger<br>
<br>
><br>
>> initGRASS("/Applications/GRASS-6.5", home=tempdir())<br>
> Fehler in initGRASS("/Applications/GRASS-6.5", home = tempdir()) :<br>
> /Applications/GRASS-6.5 not found<br>
>> initGRASS("/Applications/GRASS-6.5.app", home=tempdir())<br>
> Fehler in system(paste("g.version", get("addEXE", envir = .GRASS_CACHE), :<br>
> Fehler bei der Ausf"uhrung des Kommandos<br>
><br>
> I don't know what is causing the problem in the second approach?<br>
> Does anyone know how to use initGRASS on Mac OS X in an R session outside GRASS correctly?<br>
><br>
> Best regards,<br>
> Johannes<br>
> --<br>
><br>
> _______________________________________________<br>
> R-sig-Geo mailing list<br>
> <a href="mailto:R-sig-Geo@r-project.org">R-sig-Geo@r-project.org</a><br>
> <a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" target="_blank">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Roger Bivand<br>
Department of Economics, NHH Norwegian School of Economics,<br>
Helleveien 30, N-5045 Bergen, Norway.<br>
voice: <a href="tel:%2B47%2055%2095%2093%2055" value="+4755959355">+47 55 95 93 55</a>; fax <a href="tel:%2B47%2055%2095%2095%2043" value="+4755959543">+47 55 95 95 43</a><br>
e-mail: <a href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a><br>
<br>
<br>
--<br>
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!<br>
Jetzt informieren: <a href="http://www.gmx.net/de/go/freephone/" target="_blank">http://www.gmx.net/de/go/freephone/</a><br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><pre><font size="4">Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177
<span> </span>
EMAIL:        <a href="mailto:thomas.adams@noaa.gov" target="_blank">thomas.adams@noaa.gov</a>
<span> </span>
VOICE:        937-383-0528
FAX:        937-383-0033</font>
<br></pre><br>
</div>