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

2022-01-19 Thread Stuart Edwards
Not sure if this will help, but you can change the Mac terminal shell back to 
bash quite easily.  This explains the process .

https://stackoverflow.com/questions/10341271/switching-from-zsh-to-bash-on-os-x-and-back-again

You can make the change on a per use basis or reset the default shell 
permanently.

HTH

Stu

> On Jan 16, 2022, at 8:29 PM, Veronica Andreo  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 ( >) 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@lists.osgeo.org 
> https://lists.osgeo.org/mailman/listinfo/grass-user 
> 
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2022-01-17 Thread Thomas Adams
Hi Nicklas!

Thank you so much for the suggestions… I had been doing all my work on
Ubuntu, but I'm using my Mac for the time being, so this is very helpful
because of my GRASS shell scripts, combining R, and Perl…

Best,
Tom

On Mon, Jan 17, 2022 at 3:39 AM Nicklas Larsson  wrote:

> 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_lars...@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 <
> veroand...@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 ()
> 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@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/grass-user
> >
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>


-- 
Thomas E Adams, III
207 Chowning Place
Blacksburg, VA 24060
tea...@gmail.com (personal)
t...@terrapredictions.org (work)

1 (513) 739-9512 (cell)
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2022-01-17 Thread Nicklas Larsson via grass-user
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  
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 
 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 () 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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
> 

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2022-01-17 Thread Nicklas Larsson via grass-user
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 
 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 () 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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
> 

___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user


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

2022-01-16 Thread Veronica Andreo
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 () 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@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user