appendix A Installing R

 

This appendix contains basic information on installing R.

Windows

Visit the R for Windows download page at https://cran.r-project.org/bin/windows/base, and download the executible installer. Double-click that file to begin the install process, and follow any prompts.

Mac

Visit the R for Mac OS X/macOS download page at https://cran.r-project.org/bin/macosx, and download the relevant binary .pkg file for your system. Install by double-clicking this file and following the prompts.

Linux

For Ubuntu/Debian systems:

apt-get update
apt-get install r-base r-base-dev

For Fedora/Red Hat/OpenSUSE systems:

yum update
yum install R

From source

As open source software, the source code for R can also be downloaded from the SVN repository at https://svn.r-project.org/R and compiled. You can even make changes to it as you see fit (if you know how).

R is available as Free Software under the terms of the Free Software Foundation’s General Public License in source code form.

Being able to browse the source code can also be handy for advanced debugging, but that is beyond the scope of this book.