

You can think of the terminal as accessing the guts of your computer. The terminal is different than the R Console. This will open a new terminal tab next to the R Console tab. To open a terminal tab through RStudio go to Tools > Terminal > New Terminal. If you see these warnings you need to let Git and GitHub know who you are. While committing and pushing you might get warning messages about your username and email. Go back to your web browser, refresh the repo page, and you should see the new files you just pushed! Hit the push button! Hopefully it looks something like this (possibly with a warning about username or email, that’s ok!): Once we’ve committed the changes we can at long last push to GitHub. If you have success it should look something like this (possibly with a warning about username or email, that’s ok!):

We can now hit “Commit” to add a commit message and commit the changes.

Click the radio button next to each one under the “Staged” column. The question marks indicate that they are new files which Git is currently not tracking.

Those files were auto-generated by RStudio. You should now have a new project open! Navigate to the Git tab and notice that two file names are listed with yellow question marks by them. Choose a meaningful place to house this project, select the option to open in a new session and hit “Create Project”. The “Project directory name” should auto-population. Finally, paste the HTTPS URL that you copied from GitHub. Then select “Version control” then “Git”. Now head back to RStudio and selection File > New Project. Next hit the green “Code” button and copy the HTTPS URL to your clipboard. Give the repository a name, a description, make it public and select the option to add a README. Go to your GitHub profile and click the plus sign in the top right, select “New repository”. We’ll then clone this repo to our computers, modify it locally, sage and commit those modifications, then push back to GitHub.įirst let’s make a new repo. Now we’ll double check by going to our GitHub profile and making a new repository. Now we should hopefully be all connected! Testing our connection There will be an error message but you can ignore it.
