R is a free programming language and software environment for statistical computing. RStudio is an integrated development environment (IDE) for the R programming language that allows users to interactively work with their code and understand it better. Use the instructions corresponding to your operating system to install both R and RStudio on your computer.
For installation issues and assistance, please visit a TTS Service Desk walk-up location or contact the 24/7 TTS Service Desk via email@example.com or (617) 627-3376. Questions related to R usage and programming can be addressed to DataLab-Support@elist.tufts.edu or answered in person by a Data Lab Assistant.
The following instructions are suitable for all modern 64-bit systems, which include all machines running Windows 10 or newer. Users of older Windows operating systems should confirm the bit width of their machine and refer to the section on legacy systems for instructions specific to 32-bit systems if needed.
- Download and run the installer for the latest stable Windows version of R available
- Download and run the installer for the latest stable Windows version of RStudio Desktop
- Optional: Advanced users looking to use packages that require compilation should also install Rtools
The version of R and RStudio suitable for macOS systems depends on the version of the operating system and the type of processor used. The following instructions are suitable for macOS 11.0 Big Sur and newer. Confirm the version of your macOS before proceeding and refer to the section on legacy systems if needed.
- Determine whether your computer has an Apple Silicon or Intel processor
- Download and run the installer for the latest stable version of R available for your processor
- Download and run the installer for the latest stable macOS version of RStudio Desktop
- Optional: Install Xcode Command Line Tools to support installation of R packages that require compilation
- Launch Terminal from Applications > Utilities > Terminal
xcode-select --installand press enter
- If you get an error message stating that the tools are already installed, no further action is needed
- If a popup window appears, click Install and agree to the Terms of Service
- Wait for Xcode Command Line Tools to install (this may take several minutes)
- Optional: Install XQuartz to use certain advanced R components and packages that rely on X11 forwarding
Linux and Legacy Systems
Linux users should install R using the Linux package management system of their operating system. Alternatively, the R project provides installation instructions for Debian, Fedora/RedHat, and Ubuntu distributions. A suitable RStudio deb or rpm package can be downloaded from the RStudio Builds page.
The latest version of R suitable for legacy 32-bit Windows operating systems is R 4.1.3 but it is not supported by any 32-bit RStudio application. The latest version of RStudio to run on a legacy 32-bit Windows system is RStudio 1.1.463 and R 3.6.3 is the latest version of R it is compatible with.
The latest R and RStudio versions available for legacy 64-bit macOS operating systems are as follows:
- macOS 10.15 Catalina: R 4.2.3 and RStudio 2022.07.3
- macOS 10.14 Mojave: R 4.2.3 and RStudio 2022.02.4
- macOS 10.13 High Sierra: R 4.2.3 and RStudio 2022.02.4
- macOS 10.12 Sierra: R 3.6.3 and RStudio 1.4.1743
- OS X 10.11 El Capitan: R 3.6.3 and RStudio 1.1.463
Other Things to Note
The use of package managers like Conda or Homebrew is not recommended on Windows and macOS systems as they might cause incompatibility with official R packages downloaded from CRAN.
Those interested in using R with the popular JupyterLab IDE should install an official R distribution from CRAN following the instructions above and then create an interactive kernel using the IRkernel package.