Is there a command I can use in the Terminal on a Mac to open RStudio?
open -na Rstudio
That works, great -- thanks! . Do you know how I could open a specific file in the terminal inside RStudio, without opening anther instance of RStudio? Thanks again
If you only have one Rstudio instance running then open -a Rstudio file.Rmd
should do the trick... if you have multiple running I haven't figured out how to control which it opens into. I think it defaults to whichever was opened first? Possibly something to do with the terminal running somewhat independently of the IDE? There is perhaps a clever way to identify which instance of Rstudio to send it to, but I'm unfortunately not that clever
Thanks, Scott!
An additional note for anyone using R projects. You can also open RStudio in your project with:
open myproject.Rproj
2 posts were split to a new topic: Is there a way to automate the running the R script after launching R studio