Appendix A. Installing R and RStudio
To get started with R, you need to acquire your own copy. This appendix will show you how to download R as well as RStudio, a software application that makes R easier to use. Youâll go from downloading R to opening your first R session.
Both R and RStudio are free and easy to download.
How to Download and Install R
R is maintained by an international team of developers who make the language available through the web page of The Comprehensive R Archive Network. The top of the web page provides three links for downloading R. Follow the link that describes your operating system: Windows, Mac, or Linux.
Windows
To install R on Windows, click the âDownload R for Windowsâ link. Then click the âbaseâ link. Next, click the first link at the top of the new page. This link should say something like âDownload R 3.0.3 for Windows,â except the 3.0.3 will be replaced by the most current version of R. The link downloads an installer program, which installs the most up-to-date version of R for Windows. Run this program and step through the installation wizard that appears. The wizard will install R into your program files folders and place a shortcut in your Start menu. Note that youâll need to have all of the appropriate administration privileges to install new software on your machine.
Mac
To install R on a Mac, click the âDownload R for Macâ link. Next, click on the R-3.0.3
package link (or the package link for the most current release of R). ...
Get Hands-On Programming with R now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.