B.1 Installation of R and RStudio

This is what you have to do in order to install R and RStudio in your own computer:

  1. In Mac OS X, if you want to have 3D functionality for packages like rgl , download and install first XQuartz and log out and back on your Mac OS X account246. Be sure that your Mac OS X system is up-to-date.
  2. Download the latest version of R at https://cran.r-project.org/. For Windows, you can download it directly here. For Mac OS X, download the latest version here.
  3. Install R. In Windows, be sure to select the 'Startup options' and then choose 'SDI' in the 'Display Mode' options. Leave the rest of installation options as default.
  4. Download the latest version of RStudio for your system at https://www.rstudio.com/products/rstudio/download/#download and install it.

Linux users can follow the corresponding instructions here for installing R, download RStudio (only certain Ubuntu and Fedora versions are supported), and install it using a package manager.


  1. This is an important step that is required for 3D graphics to work.↩︎