![]() ![]() You should have a new repository that looks something like this: A new repository created in GitHub. Choose public or private for your visibility settingĬreating a new repository in GitHub (note that my PC uses a Dark Theme).Choose a repository name (I will call mine “R-NewProject”).Click on “New” from the front page and then: If you want to start a new RStudio project (ie you haven’t yet created it) and want to have it backed-up on GitHub, complete the following steps:įirstly, create a new repository on GitHub via the website. ![]() A dialogue box in R showing settings for accessing Git. If it doesn’t match the dialogue box in RStudio, click on “Browse…” and navigate to your Git executable file. Typing “where git” will reveal the path of the Git executable. Type where git to reveal the Git executable file path. If Git is not in this location or you want to check where the Git executable path is, open the Command Prompt in Windows (Windows Key + R, then type cmd and press Enter) or Windows Terminal. Typically, it will be in C:/Program Files/Git/bin/git.exe. ![]() Under “Git executable”, you should be able to see a path to Git. To do this, open RStudio and go to Tools > Global Options > Git/SVN. The first task is to ensure that Git can be located by RStudio on your machine. Add an existing RStudio project to GitHub.Check that RStudio can find Git (an important first step).Once these steps are complete, you can do the following: You have a GitHub account (they’re free).If you are looking to use GitHub to back-up your RStudio projects, the following procedures will help you set this up on your Windows machine. Use GitHub to back-up your R projects within RStudio and ensure you maintain version control. ![]()
0 Comments
Leave a Reply. |