Wednesday, April 16, 2014

R beginner tutorial 1 - Getting started with R and R studio IDE

This short blog post will teach you how to install R and also introduce you to R studio.

R Studio is an Integrated Development environment for programming with R. R studio makes programming with R way lot easier than the boring command line GUI that comes with base R system.

Installing R and R studio on windows 

First of all you need to download the latest base R package for installing the basic version of R on your machine. R is supported by the CRAN project and thus you can download R from the nearest CRAN mirrors. 

It is recommended that you learn R on a 64-bit machine because of the memory benefits. Still, for now, a 32-bit version will too suffice. 

Check your OS version by right click on My computer-> Properties

Installing R on windows


Now, log on to http://cran.r-project.org/ 

select download R for Windows -> click on "base" -> click on "Download R for windows"

This will start downloading the base R package for your machine.  After the download gets finished just RUN the .exe file as an administrator and finish the installation of R.


Installing R studio on windows

Now that you've set up R, its time to install R studio. Log on to https://www.rstudio.com/

select "download Now" -> select the Desktop Version -> select the correct OS platform. 

After the download gets finished just RUN the .exe file as an administrator and finish the installation of R studio.


Setting up R studio

After both R and R studio are installed, its time to set up R studio for windows. 



No comments:

Post a Comment