Created
May 18, 2026 19:52
-
-
Save kleinlennart/0db7de52cae101b85514079e6789cfc5 to your computer and use it in GitHub Desktop.
rstudio . for macOS zsh: Open the current directory as an RStudio Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rstudio() { | |
| Rscript -e 'usethis::use_rstudio()' && open -a RStudio -- *.Rproj | |
| } |
Author
Author
add to ~/.zshrc
then run:
source ~/.zshrc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inspired by
> Shell Command: Install 'code' command in PATH command
in VS Code
https://code.visualstudio.com/docs/setup/mac#_configure-path-with-vs-code