Home > Blockchain >  How do you open an Rstudio project with a Git Bash command?
How do you open an Rstudio project with a Git Bash command?

Time:01-28

I am looking for a command to start an Rstudio project using Git Bash from the Git for Windows installation. I am looking for a command that opens the project in Rstudio, similarly to how it would open if you double-clicked on the .Rproj file in the Windows file explorer. I have Rscript.exe added to my PATH. Thanks!

CodePudding user response:

You have to add "C:\Program Files\RStudio\bin" to your PATH. This will give you access to rstudio.exe. You may then run rstudio path-to-my-project.Rproj in the bash command line, and it will open as desired in OP.

CodePudding user response:

On MacOS you can use open, or on Linux xdg-open. E.g., open path/to/your-project.Rproj. See Connor's answer for Windows.

  •  Tags:  
  • Related