Open Git Bash shell from RStudio - Tools > Shell.Ģ. Create a new project from your Github repository in RStudioĪ) In RStudio, go to File > New Project… > Version Control > Gitī) Paste your Github repo link into the Repository URL boxĬ) Optional: edit your Project directory name and select desired subdirectory for projectġ. Set RStudio to use Git Bash as shell - In RStudio, go to Tools > Global Options > Git/SVN > make sure boxes are checked for both “Enable version control interface for RStudio projects” and “Use git Bash as shell for Git projects”Ī) Log into Github and create a new repository.ī) Copy the URL of your repository from your browser’s address barĢ. If your computer does not have Git, go to to download the latest version. If the version description of git shows up in Terminal, you have Git installed on your computer already. Then type in 'git -version' again and hit enter. If prompted to install command line developer tools, install as prompted. Open Terminal and type 'git -version' and hit enter. To check in Mac, go to Applications > Utilities > Terminal. To check in Windows, go to your start menu and search for 'Git.' If an item called 'Git Bash' shows up, you are good to go. *Your computer should have Git already installed. *You should already have a Github account. *This guide assumes that user has basic knowledge of RStudio and Github. Not only will your code be accessible on Github, but every change will also be logged and various versions of the same file can be created so that you can easily view and incorporate changes made by collaborators or go back to a previous version if a mistake is made. Furthermore, linking your local Git to your Github account’s repository will allow you to access your R code and files from anywhere. Using RStudio with version control will make collaboration smoother by keeping track of changes in Git.
0 Comments
Leave a Reply. |