You should install R and Rstudio on your machine. (Rstudio is a convenient user-friendly interface for using R.)
Some brief tutorials to get you going: 1a, 1b. Here is a nice portal for you to access all kinds of R resources. This is the somewhat comprehensive tutorial that I myself used.