Combining Rstudio and GitHub repositories

In this document I am sharing my lessons on how to use Github and Rstudio. This can be helpful for anybody who is starting learning about it. Here we go! :)

First step: Installing Git and connecting to my GitHub account

suppressWarnings({
library(usethis)
use_git_config(user.name="PinoGS", user.email = "mpinogarsan@gmail.com")})

Second step: Connecting repositories from your GitHub

Start a new project > Select ‘Version Control’ > Git Paste the link of your repository Start working from Rstudio and, once you are done, select your docs in “Git” tab, save your commit with a message section and click “Push”

Voilá! Now you should have your updates in your GitHub repository

Check Adrien’s notes from the session: for further instructions. He is an excellent student, and a little bit ‘nerdy’ :D

Other interesting functions from GitHub you should know:

How to ‘steal’ other’s code? You can copy other’s code clicking ‘Fork’ in Github