Clone the GitHub repository to your computer using RStudio
Questions
- Are you ready to check RStudio and github connectivity?
Connect you github repo to RStudio
- Open RStudio
- In RStudio, start a new Project:
File > New Project > Version Control > Git
- In “Repository URL”, paste the URL of your new GitHub repository. It will be something like this
https://github.com/Sydney-Informatics-Hub/myrepo_masterclass_RStudio_github.git
- Accept the default project directory name, e.g. myrepo_masterclass_RStudio_github, which coincides with the GitHub repo name
- Keep a note of where the Project will be saved locally
- Check “Open in new session”
- Click “Create Project”
- You should find yourself in a new local RStudio Project that represents your test repo on GitHub. This should download the README.md file from GitHub. Look in RStudio’s file browser pane for the README.md file
- And this is the new
Git
tab you should see next to your environment pane:
Key points
- RStudio allows seamless connectivity to github in a single step.
All materials copyright Sydney Informatics Hub, University of Sydney