Introduction to programming R (Install R)
Noureddine Kouaissah
International University of Rabat
[Link]@[Link]
October 27, 2019
Noureddine Kouaissah (UIR) Information systems October 27, 2019 1/9
What is R?
R is a language and environment for computing and graphics.
R is based on the S language originally developed by John Chambers
and colleagues at AT&T Bell Labs in the late 1970s and early 1980s.
R (sometimes called ”GNU S” ) is free open source software licensed
under the GNU general public license (GPL 2).
R development was initiated by Robert Gentleman and Ross Ihaka at
the University of Auckland, New Zealand.
R is formally known as The R Project for Computing
[Link]
Noureddine Kouaissah (UIR) Information systems October 27, 2019 2/9
What is R great at?
Problems solving
Data manipulation
Data analysis
Statistical modeling
Data visualization
Noureddine Kouaissah (UIR) Information systems October 27, 2019 3/9
Free Software
With free software, you are granted:
1 The freedom to run the program, for any purpose (freedom 1).
2 The freedom to study how the program works, and adapt it to your
needs (freedom 2). Access to the source code is a precondition for this.
3 The freedom to redistribute copies so you can help your neighbor
(freedom 3).
4 The freedom to improve the program, and release your improvements
to the public, so that the whole community benefits (freedom 4).
Access to the source code is a precondition for this.
[Link]
Noureddine Kouaissah (UIR) Information systems October 27, 2019 4/9
Some Useful Books on
Standard texts
Chambers (2008). Software for Data Analysis, Springer.
Chambers (1998). Programming with Data, Springer.
Murrell (2005). R Graphics, Chapman & Hall/CRC Press.
Other resources
Springer has a series of books called Use R!.
A longer list of books is at
[Link]
Noureddine Kouaissah (UIR) Information systems October 27, 2019 5/9
To Install R (Windows Users)
1 Open an internet browser and go to [Link].
2 Click the ”download R” link in the middle of the page under ”Getting
Started.”
3 Select a CRAN location (a mirror site) and click the corresponding
link.
4 Click on the ”Download R for Windows” link at the top of the page.
5 Click on the ”install R for the first time” link at the top of the page.
6 Click ”Download R for Windows” and save the executable file
somewhere on your computer. Run the .exe file and follow the
installation instructions.
7 Now that R is installed, you need to download and install RStudio.
Noureddine Kouaissah (UIR) Information systems October 27, 2019 6/9
To Install RStudio (Windows Users)
1 Go to [Link] and click on the ”Download RStudio”
button.
2 Click on ”Download RStudio Desktop.”
3 Click on the version recommended for your system, or the latest
Windows version, and save the executable file.
4 Run the .exe file and follow the installation instructions.
Noureddine Kouaissah (UIR) Information systems October 27, 2019 7/9
To Install R (Mac Users)
1 Open an internet browser and go to [Link].
2 Click the ”download R” link in the middle of the page under ”Getting
Started.”
3 Select a CRAN location (a mirror site) and click the corresponding
link.
4 Click on the ”Download R for (Mac) OS X” link at the top of the
page.
5 Click on the file containing the latest version of R under ”Files.”
6 Save the .pkg file, double-click it to open, and follow the installation
instructions.
7 Now that R is installed, you need to download and install RStudio.
Noureddine Kouaissah (UIR) Information systems October 27, 2019 8/9
To Install RStudio (Mac Users)
1 Go to [Link] and click on the ”Download RStudio”
button.
2 Click on ”Download RStudio Desktop.”
3 Click on the version recommended for your system, or the latest Mac
version, save the .dmg file on your computer, double-click it to open,
and then drag and drop it to your applications folder.
Noureddine Kouaissah (UIR) Information systems October 27, 2019 9/9