Nothing Special   »   [go: up one dir, main page]

Installing R and RStudioODL

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Institute of Health and Wellbeing

Installing R and RStudio

Prof. Daniel F Mackay, 2021/22

daniel.mackay@glasgow.ac.uk
How do I get R and RStudio ?

The CRAN website (https://cran.r-project.org/index.html) is the home of R. On this webpage you can
download R as well as get access to thousands of R packages that cover a wide range of basic and very
specialised statistical, graphical and data analysis techniques.

So to download R point your browser at: https://cran.r-project.org/index.html. You should see the
following page.

Click on the “Download R for Windows” link if your operating system is Microsoft Windows. Linux and
Mac links are also displayed. We will assume for the purpose of this course you are using Microsoft
Windows. Having clicked the link you should see:

2
and the hyperlink called “install R for the first time” is the one you should click. You will then see:

You should then click on the download link which will bring up the following dialog box:

3
Save the file to a convenient place on your hard drive and then double click the .exe. Follow the instructions to
install R. Having done that you are ready to then launch R to make sure that it has installed correctly. So, locate
the blue icon “R” and either click or double click it to bring up the R GUI (graphical user interface):

At this point it is worth drawing your attention to the capitalised words in the R Console: “R is free software
and comes with ABSOLUTELY NO WARRANTY”. This means that there are no quality guarantees
with the software and you use it at your own risk. Commercial products such as SAS, MATLAB, Stata
and SPSS do not have this drawback. So, you use R at your own risk.

I have used R for a number of years now and still encounter problems with its quality…and I know of at
least one member of staff who got completely different results when he installed an updated version. So
beware: while it is trendy and a free product, this is also it’s biggest shortcoming.

The basic R GUI is, well, basic and many R users also install RStudio to help them with using R.
Essentially it substitutes the R GUI (above) with a more sophisticated GUI that looks much better and has
some very handy features.

4
RStudio

To download RStudio go to https://www.rstudio.com/

Click on “Download RStudio”, choose the free version, and pick the windows installer from the list.
Save the file somewhere convenient onto your C drive and then double click the

installer following the installation instructions. You will then see an RStudio icon, in your
“Start menu” or on your desk-top.

You might also like