Terminal command to open RStudio

If you only have one Rstudio instance running then open -a Rstudio file.Rmd should do the trick... if you have multiple running :grimacing: 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 :stuck_out_tongue_winking_eye:

1 Like