Course sections

What is R?, Lecture 2

Links for the necessary software

Installation of R: Related Websites
Comprehensive R Archive Network (CRAN)

R packages are distributed through CRAN
•CRAN is the repository where the packages are stored, for the users to access it globally.

The Comprehensive R Archive Network is a collection of sites which carry identical material, consisting of the R distribution(s), the contributed extensions, documentation for R, and binaries.
The capabilities of R are extended through user-created packages, which allow specialized statistical techniques, graphical devices, import/export capabilities, reporting tools, etc. These packages are developed primarily in R, and sometimes in Java, C, C++, etc. The R packaging system is also used by researchers to organise research data, code and report files in a systematic way for sharing and public archiving.
A core set of packages is included with the installation of R, with more than 12,500 additional packages available at the Comprehensive R Archive Network (CRAN)

• Installation Guide for R and R-studio

Step 1: Installing R:
1. Download the R installer from
2. Run the installer. Default settings are fine.

Step 2: Installing RStudio
1. Download RStudio:
2. Once the installation of R has completed successfully (and not before), run the RStudio installer.
3. Download the appropriate archive for your system (Windows/Linux only – the Mac version can be installed into your personal “Applications” folder). Double clicking on the zip archive should automatically unpack it on Windows machines.

Step 3: Check that R and RStudio are working
1. Open RStudio. It should open a window
2. In the left-hand window, by the ‘>’sign, type ‘4+5’ (without the quotes) and hit enter. An output line reading ‘[1] 9’ should appear. This means that R and RStudio are working.

WhatsApp chat