Getting and Installing Interactive R Binaries

R has been ported to every major desktop computing platform. Because R is open source, developers have ported R to many different platforms. Additionally, R is available with no license fee.

If you’re using a Mac or a Windows machine, you’ll probably want to download the files yourself and then run the installers. (If you’re using Linux, I recommend using a port management system like Yum to simplify the installation and updating process; see Linux and Unix Systems.) Here’s how to find the binaries.

  1. Visit the official R website. On the site, you should see a link to “Download.”

  2. The download link actually takes you to a list of mirror sites. The list is organized by country. You’ll probably want to pick a site that is geographically close, because it’s likely to also be close on the Internet, and thus fast. I usually use the link for the University of California, Los Angeles, because I live in California.

  3. Find the right binary for your platform and run the installer.

There are a few things to keep in mind, depending on what system you’re using.

Installing R on Windows is just like installing any other piece of software on Windows, which means that it’s easy if you have the right permissions, difficult if you don’t. If you’re installing R on your personal computer, this shouldn’t be a problem. However, if you’re working in a corporate environment, you might run into some trouble.

If you’re an “Administrator” or “Power User” on Windows XP, installation is straightforward: double-click the installer and follow the on-screen instructions.

There are some known issues with installing R on Microsoft Windows Vista. In particular, some users have problems with file permissions. Here are two approaches for avoiding these issues:

For a full explanation, see http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-run-under-Windows-Vista_003f.

Currently, CRAN releases only 32-bit builds of R for Microsoft Windows. These are tested on 64-bit versions of Windows and should run correctly.

The current version of R runs on both PowerPC- and Intel-based Mac systems running Mac OS X 10.5 (Leopard) and higher. If you’re using an older operating system, or an older computer, you can find older versions on the website that may work better with your system.

You’ll find three different R installers for Mac OS X: a three-way universal binary for Mac OS X 10.5 (Leopard) and higher, a legacy universal binary for Mac OS X 10.4 and higher with supplemental tools, and a legacy universal binary for Mac OS X 10.4 and higher without supplemental tools. See the CRAN download site for more details on the differences among these versions.

As with most applications, you’ll need to have the appropriate permissions on your computer to install R. If you’re using your personal computer, you’re probably OK: you just need to remember your password. If you’re using a computer managed by someone else, you may need that person’s help to install R.

The universal binary of R is made available as an installer package; simply download the file and double-click the package to install the application. The legacy R installers are packaged on a disk image file (like most Mac OS X applications). After you download the disk image, double-click it to open it in the finder (if it does not automatically open). Open the volume and double-click the R.mpkg icon to launch the installer. Follow the directions in the installer, and you should have a working copy of R on your computer.

Before you start, make sure that you know the system’s root password or have sudo privileges on the system you’re using. If you don’t, you’ll need to get help from the system administrator to install R.