Skip to content

How do I run to or more R consoles on Mac OS X?

4 messages · chronos.phenomena, Charlie Sharpsteen, Ken Knoblauch

#
chronos.phenomena wrote:
I don't think this is possible with R.app on OS X.  OS X applications do not
spawn separate processes if they are re-launched-- they pass focus to the
one that is already running.

However, you can access R from the OS X terminal and run as many different
sessions as you want.

Hope this helps!

-Charlie
#
chronos.phenomena <chronos.phenomena <at> gmail.com> writes:
In Leopard from a terminal, you can try 

open -n /Applications/R.app

to open as many copies of the app as you like.  Be careful though,
because these inherit environment variables from the terminal
session, not necessarily the same as those when running the
app from the Finder.  I was bitten by that the first time I
tried this.

Ken
#
Thanks... that worked

is there a way to run r script?

for example open -n /Applications/R.app myscript.r


when I use this syntax... I get my script file opened but not executed :(

Thanks in advance
Ken Knoblauch wrote: