Installing GNU R and the R Commander

(These instructions are a modified and adapted version of a set of instructions originally written by Glen van Brummelen.)

GNU R is a statistical programming language and data processing package. The "R Commander" (or Rcmdr) is a graphical front-end that gives you menu-driven access to a lot of the basic functions you'd want to use within R, saving you from having to build arcane commands from scratch.

R packages and add-ons come from of a series of mirrors called CRAN, for the "Comprehensive R Archive Network".

Windows

MacOS X

Prerequisites

Before you install R and Rcmdr, there are some things you want to have installed on your Mac. If you have Leopard or later, you should automatically have X11 installed. If not... get that installed. You can find it with your install DVD.

Tiger

If you're still on Tiger... update to Snow Leopard! If you really won't do that, then you can install GNU R, but not the latest version.

First, you have to install X11. Here are instructions for installing X11 on Tiger without the Install DVD. When you install R, take a look at the archives, and keep going back until you find a version of R that succesfully installs and runs. You may need to go back to R 2.9. I am pretty sure that R 2.11 will not work on Tiger.

Linux

It's almost certainly in your distro. Install it from there. Be sure to gloat over everybody else that you are running R on the OS closest to the native operating system it is intended to be run on. Rcmdr is also probably in your distro. Sadly, in Ubuntu, some of the things Rcmdr wants aren't included. For that reason, you might want to install Rcmdr from inside R rather than through the package system. Or, you could just ignore the warnings when things start, and hope that you aren't affected. If you want to install Rcmdr from inside R, then uninstall any Rcmdr package you've installed, and run the following from R:

install.packages("Rcmdr", dependencies=TRUE)