Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - New Empty Session #3612

Open
baderstine opened this issue Oct 5, 2018 · 2 comments

Comments

@baderstine
Copy link

commented Oct 5, 2018

Use Case:
Working on a particular Project in a Session. Want to open a brand new instance of RStudio while leaving my current Session open, and not having to navigate to a different Project file. I cannot find a way to do this on Mac OS X!

I would imagine this happening one of three ways:

  1. File -> New Project in New Session...
  2. Session -> New Empty Session...
    TBH: I was surprised and a little confused that "Session -> New Session" really acts more like "Session -> Duplicate Session"
  3. Other menu shortcut that just runs: "open -n /Applications/RStudio.app" (thanks: SO)

What I've tried, and why it doesn't work:

  1. File -> New Project... : this takes over the current session.
  2. File -> Open Project in New Session... : this requires a second Project to already exist.
  3. Session -> New Session... : this duplicates everything in the current session and there is a bug #3521
@kevinushey

This comment has been minimized.

Copy link
Contributor

commented Oct 8, 2018

One solution using the rstudioapi package is to run:

rstudioapi::openProject(newSession = TRUE)

Does this indeed accomplish what you need?

@baderstine

This comment has been minimized.

Copy link
Author

commented Oct 8, 2018

No sorry. This is equivalent to Session -> New Session, 3. above. It opens a new session of the same project in a new window.

However, this actually does what I want:

rstudioapi::terminalExecute("open -n /Applications/RStudio.app", show=F)

@ronblum ronblum added the enhancement label Oct 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.