[GRASS-user] Trouble calling R from GRASS on Mac

Nicklas Larsson n_larsson at yahoo.com
Mon Jan 17 00:39:01 PST 2022


Tom,

UPDATE:
while the procedure described before works, it skips some good to have settings of GRASS environment (set with Grass.sh startup script), therefore:

replace all instances of
"/Applications/GRASS-7.8.app/Contents/Resources/bin/grass78"
with
"/Applications/GRASS-7.8.app/Contents/MacOS/Grass.sh"

and we're good to go.

N.






On Monday, 17 January 2022, 09:18:58 CET, Nicklas Larsson <n_larsson at yahoo.com> wrote: 





Tom,


There is a limitation presently in the GRASS-X.X.app startup script, i.e. forcing the user into a bash session and resetting of PATH. I hope to fix this in future releases. However, that doesn't place us in a helpless situation.

Assuming you start GRASS in Finder: (1) start GRASS session, (2) in Terminal enter
"open /Applications/R.app" for R GUI version or
"/usr/local/bin/R" for R command line version.

If you wish to stay in zsh, then start GRASS in Terminal with: "/Applications/GRASS-7.8.app/Contents/Resources/bin/grass78". Then open R in the same way as above

If the second alternative is the more appealing, you may wish to simplify by making a GRASS link to /usr/local/bin:
"sudo ln -s /Applications/GRASS-7.8.app/Contents/Resources/bin/grass78 /usr/local/bin/ grass78".
Assuming you have /usr/local/bin/ in your path, then entering "grass78" alternatively "grass78 --gui" in Terminal is all you need to start GRASS.

Best,
Nicklas








On Monday, 17 January 2022, 02:29:59 CET, Veronica Andreo <veroandreo at gmail.com> wrote: 





Any Mac user that can assist here, please? 

Thomas, maybe you can also subscribe and write to grass-stats mailing list: https://lists.osgeo.org/mailman/listinfo/grass-stats 

Sorry for not being of much help with this
Best
Vero

El dom, 16 ene 2022 a las 2:28, Thomas Adams (<tea3rd at gmail.com>) escribió:
> Hi all!
> 
> I have R (latest) and GRASS 7.8.6 installed on my Mac. Both R and GRASS launch fine from the GUIs. I can launch R from the default Mac zsh terminal window, but R will not launch from the GRASS bash shell… however, at a zsh prompt, I can startup bash, and R launches as expected fmo the bash prompt.
> 
> So, how do I get the settings right to be able to launch R from the GRASS bash terminal — this has never been a problem for me with my Ubuntu installations 
> 
> Suggestions are appreciated… thank you.
> 
> Tom
> 
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
> 

_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list