Skip to content

yixinzhang12/GitSetup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started with R and Git

Student: Zhang, Yixin

Some helpful resources for R:

Some helpful resources for Git:

Part 1: R installation

  • Install R from CRAN, it is free. If you already have R installed, please check that you have a recent version (at least 3.6.0).

  • Install Rstudio, it is free. If you already have Rstudio installed, please update to the most recent version.

Part 2: Git installation and configuration

  • Install git. If you use Windows, use git for Windows. In your terminal, configure Git to recognize you.

git config user.name “First Last"

git config --global user.email "email@example.com"

Part 3: Integration of Git, Github and R

  • Fork this repository using Fork at the top right corner (this will create a repository in your GitHub account)

  • Clone your repository to local machine using git clone address to folder (make sure you are already within the folder you want it to clone to)

  • Open Rstudio and make sure you have the version control enabled, see Rstudio version control for further help.

  • Use Rstudio to open the project associated with this directory. You should see the Git tab appear next to Environment and History consoles which will enable you to do staging, commits, pulls and pushes from within Rstudio. You will make all the changes locally, and only then push them to Github.

Part 4: Git basics practicing

To practice using git, create the following changes with several commmits. First, get accustomed with good commit practices

  • Change the last name, first name at the top of this document to your last name/first name.

  • Practice writing an R function in Function_test.R

  • Make sure to make consistent commits throughout and push your changes to GitHub in the end.

About

Basic git setup (loosely based on HW1 from STAT 600: Computational Statistics)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%