I need to run multiple R sessions, and hope that they can be performed in different R sessions. In Windows, I am able to open an arbitrary number of R sessions, and run different codes in each session (both RGui and RStudio). However, in Mac OSX, neither R.app nor RStudio would allow me to open multiple independent sessions -- I have to wait until the first set of R codes are completed in order to run a second set of R codes.
Is there any solution in Mac OSX? This issues had bothered me long ago, so I'd like to hear your suggestions. Thanks!
Thank you for all the suggestions. Here is a brief summary of the possible solutions:
- Using Terminal: Run:
open -n /Applications/RStudio.app
in Terminal
- Install Emacs and ESS which permit multiple sessions
- Duplicate the entire R.app package by option-dragging (and you can rename the copies)
- Run multiple rstudio sessions using projects
Opens another instance of an application in OSX:
open -n -a "APPLICATION NAME"
In this case you'd just do:
open -n -a "rstudio"
CNET article source
I use this all the time on Mac OSX to open multiple Rgui sessions (similar to the Rstudio answer above):
open -n /Applications/R.app/
You can do this multiple times for as many R sessions as you want.