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!
You can open both simultaneously, which will result in two rsessions. You can then open each script in each project, and execute each one separately. It is then on your OS to manage the core allocation.
Opening a New Session You can see all active sessions by clicking the “Sessions” button on the top toolbar: The drop down menu will list all active sessions and let you open individual sessions or all sessions simultaneously by clicking on the icon to open it up in a separate tab.
There are two ways to open a new source window: Pop out an editor: click the Show in New Window button in any source editor tab. Tear off a pane: drag a tab out of the main window and onto the desktop; a new source window will be opened where you dropped the tab.
Thank you for all the suggestions. Here is a brief summary of the possible solutions:
open -n /Applications/RStudio.app
in TerminalOpens 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With