Install R For Mac

This is the new home for experimental binaries and documentation related to R for Mac OS X. To learn more about the R software or download released versions, please visit www.r-project.org.

R is a programming language. To use R, we need to install an Integrated Development Environment (IDE).Rstudio is the Best IDE available as it is user-friendly, open-source and is part of the Anaconda platform. R.APP is part of the binary distribution of R for Mac OS X available from CRAN. That distribution consists of one package containing the R framework and R.APP. Development versions of R.APP are made available on daily basis in the form of a disk image containing the R.APP itself.

All software on this page is strictly experimental and subject to acceptance of the supplied R license agreement and the disclaimer at the end of the page.

In addition to this nightly generated page, visit the Building R page for the most recent tips.

Index

Universal nightly builds for Mac OS X (10.6+ and 10.9+)

R framework

BuildOSDateStatusDownload
R-3.4-branch
3.4.4 Patched
(2018/03/19, r75161)
mavericksOct 16 23:30x86_64: OK (log)
Package: OK

R-3.4-branch-mavericks-sa-x86_64.tar.gz (65Mb)
R-3.4-branch-mavericks-signed.pkg (75Mb, installer incl. GUI)
R-3.5-branch
3.5.3 Patched
(2019/03/11, r77192)
el-capitanNov 3 23:30x86_64: OK (log)
Package: OK

R-3.5-branch-el-capitan-sa-x86_64.tar.gz (64Mb)
R-3.5-branch-el-capitan-signed.pkg (74Mb, installer incl. GUI)
R-3.6-branch
3.6.1 Patched
(2019/09/23, r77210)
el-capitanNov 3 23:30x86_64: OK (log)
Package: OK

R-3.6-branch-el-capitan-sa-x86_64.tar.gz (66Mb)
R-3.6-branch-el-capitan-signed.pkg (76Mb, installer incl. GUI)
R-devel
4.0.0 Under development (unstable)
(2019/11/03, r77362)
el-capitanNov 3 23:30x86_64: OK (log)
Package: OK

R-devel-el-capitan-sa-x86_64.tar.gz (65Mb)
R-devel-el-capitan-signed.pkg (75Mb, installer incl. GUI)

Requirements: Mac OS X 10.6 or higher for the Snow Leopard build, Mac OS X 10.9 or higher for the Mavericks build. For additional tools necessary for compiling packages, see below. We use Xcode 4.2 but Xcode 3.2 and higher should work as well. Note that you will need Command Line Tools component of Xcode on Mac OS X 10.7 or higher. The Mavericks build uses Xcode 5.

The installer image (*.pkg) is packaged exactly the same way as the CRAN release of R (including the GUI) and it will update your R version (unless you use pkgutil - see instructions during installation). Alternatively you can use the tar-ball (*.tar.gz) which must be unpacked in the root (e.g. tar fvxz R*.tar.gz -C /), but doesn't contain the GUI (see below for a separate download).

NOTE: The installer for the Snow Leopard build of R also includes Tcl/Tk package which will install in /usr/local. It is optional (only needed for the tcltk R package) and can be unchecked at installation time.

Starting with R 3.0.0 the builds are single-arch 64-bit Intel builds for OS X 10.6 and higher.

Mac OS X GUI

VersionBuildDownload
Mac OS X GUI rev. 7520 for R 3.4.xmavericks-Debug.dmgR-GUI-7520-3.4-mavericks-Debug.dmg
Mac OS X GUI rev. 7520 for R 3.4.xmavericks-Release.dmgR-GUI-7520-3.4-mavericks-Release.dmg
Mac OS X GUI rev. 7649 for R 3.5.xel-capitan-Debug.dmgR-GUI-7649-3.5-el-capitan-Debug.dmg
Mac OS X GUI rev. 7649 for R 3.5.xel-capitan-Release.dmgR-GUI-7649-3.5-el-capitan-Release.dmg
Mac OS X GUI rev. 7654 for R 3.6.xel-capitan-Debug.dmgR-GUI-7654-3.6-el-capitan-Debug.dmg
Mac OS X GUI rev. 7654 for R 3.6.xel-capitan-Release.dmgR-GUI-7654-3.6-el-capitan-Release.dmg
Mac OS X GUI rev. 7632 for R 3.6.xel-capitan-Debug.dmgR-GUI-7632-3.6-el-capitan-Debug.dmg
Mac OS X GUI rev. 7632 for R 3.6.xel-capitan-Release.dmgR-GUI-7632-3.6-el-capitan-Release.dmg

To install, open the image and drag the R icon to your Applications folder. Alternatively the GUI can be run directly off that image without copying if you just want to test it. Build configurations with '64' suffix are 64-bit builds, all others are 32-bit (except for Debug). If you want to use both, rename one of them or place them in different directories.

Tools

In order to compile R and R packages you will need Xcode Developer Tools version 3.1 or higher and a universal Fortran compiler. For details and download, please read the Tools page. The R 3.0.0 and higerh binaries are built using Xcode 4.2.

Building universal binaries

Starting with R 2.5.0 CRAN binaries use Apple's 10.4u SDK allowing universal builds on both PowerPC and Intel Macs. Building universal R is done by compliling two R binaries and setting r_arch parameter to ppc and i386 respectively, along with the proper compiler flags. Those two builds can then be installed into the same framework location, R install process merges them correspondingly.

If you don’t need FTP, then there’s no reason to install it. SFTP has more secure encryption.However, some users still prefer FTP. Ftp server for mac.

To build an universal package that contains a configure script, it is necessary to run R CMD twice. Assuming you have a source package foo_0.1.tar.gz, this is how you install it universally:

Install R Mac Sierra

R CMD INSTALL foo_0.1.tar.gz
R --arch=ppc CMD INSTALL --libs-only foo_0.1.tar.gz
R --arch=x86_64 CMD INSTALL --libs-only foo_0.1.tar.gz
(Note: if the package doesn't contain a configure script, regular single-step installation actually works). You can create a binary package by packing such installed package into a tar ball. The resulting binary will work on both PowerPC and Intel-based Macs.

Legacy R

The current build supports only Mac OS X 10.6 (Snow Leopard) or higher. Older versions of OS X are not supported in binary form, but R can be compiled from sources for such legacy OS versions. Last released version for Mac OS X 10.4 (Tiger) was R 2.10.1 and last release for Mac OS X 10.5 (Leopard) was R 2.15.3.

Other binaries

The following binaries are not maintained or supported by R-core and are provided without any guarantee and for convenience only (Mac OS X 10.4.4 or higher required). They match the binaries used on the CRAN binary build machine and thus are recommended for use with CRAN R package binaries.
  • GTK+ 2.24.17 framework - 64-bit build of GTK+ 2.24.17, necessary for binary R packages that use GTK+ version 2 (such as RGtk2+). R 3.0.0 and higher, Snow Leopard build
    Download: GTK_2.24.17-X11.pkg (ca. 41MB)
  • GTK+ 2.18.5 framework - universal build of GTK+ 2.18.5, necessary for binary R packages that use GTK+ version 2 (such as RGtk2+). R 2.10.0 - 2.15.3, Leopard build
    Download: GTK_2.18.5-X11.pkg (ca. 58MB)
  • RSwitch - a small GUI that allows you to switch between R versions quickly (if you have multiple versions of R framework installed).
    Download: RSwitch-1.2.dmg (ca 67kB, universal, updated 2011/03/24 to support R 2.13.0 and up)
    Download: RSwitch-1.1.dmg (ca 120kB, universal, updated 2006/09/22)
    Sources: RSwitch-1.2.tar.gz (Xcode project and sources)
    Sources: RSwitch-1.1.tar.gz (Xcode project and sources)

More external libraries and older versions can be found in the /libs/ directory.

Disclaimer

All software is provided 'as is' and any express or implied warranties, including, but but not limited to the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall AT&T, the publisher, copyright owner or contributors be liable for any direct, indirect, incidental,special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

What you need to install Windows 10 on Mac

  • MacBook introduced in 2015 or later
  • MacBook Air introduced in 2012 or later
  • MacBook Pro introduced in 2012 or later
  • Mac mini introduced in 2012 or later
  • iMac introduced in 2012 or later1
  • iMac Pro (all models)
  • Mac Pro introduced in 2013

The latest macOS updates, which can include updates to Boot Camp Assistant. You will use Boot Camp Assistant to install Windows 10.

64GB or more free storage space on your Mac startup disk:

R On Mac

  • You can have as little as 64GB of free storage space, but at least 128GB of free storage space provides the best experience. Automatic Windows updates require that much space or more.
  • If your Mac has 128GB of memory (RAM) or more, the Windows installer needs at least as much free storage space as your Mac has memory. For example, if your Mac has 256GB of memory, your startup disk must have at least 256GB of free storage space for Windows.

An external USB flash drive with a storage capacity of 16GB or more, unless you're using a Mac that doesn't need a flash drive to install Windows.

A 64-bit version of Windows 10 Home or Windows 10 Pro on a disk image (ISO) or other installation media:

  • If installing Windows on your Mac for the first time, use a full version of Windows, not an upgrade.
  • If your copy of Windows came on a USB flash drive, or you have a Windows product key and no installation disc, download a Windows 10 disk image from Microsoft.
  • If your copy of Windows came on a DVD, you might need to create a disk image of that DVD.

How to install Windows 10 on Mac

To install Windows, use Boot Camp Assistant. It's in the Utilities folder of your Applications folder.

1. Use Boot Camp Assistant to create a Windows partition

R Studio For Mac

Open Boot Camp Assistant and follow the onscreen instructions:

  • If you're asked to insert a USB drive, plug your USB flash drive into your Mac. Boot Camp Assistant will use it to create a bootable USB drive for Windows installation.
  • When Boot Camp Assistant asks you to set the size of the Windows partition, remember the minimum storage-space requirements in the previous section. Set a partition size that meets your needs, because you can't change its size later.

2. Format the Windows (BOOTCAMP) partition

When Boot Camp Assistant finishes, your Mac restarts to the Windows installer. If the installer asks where to install Windows, select the BOOTCAMP partition and click Format. In most cases, the installer selects and formats the BOOTCAMP partition automatically.

3. Install Windows

Unplug any external devices, such as additional displays and drives, that aren't necessary during installation. Then click Next and follow the onscreen instructions to begin installing Windows.

4. Use the Boot Camp installer in Windows

After Windows installation completes, your Mac starts up in Windows and opens a ”Welcome to the Boot Camp installer” window. Follow the onscreen instructions to install Boot Camp, including Windows support software (drivers). You will be asked to restart when done.

If the Boot Camp installer doesn't open automatically, your final step should be to open the Boot Camp installer manually and use it to complete installation.

How to switch between Windows and macOS

Restart, then press and hold the Option (or Alt) ⌥ key during startup to switch between Windows and macOS.

Learn more

If you have one of these Mac models using OS X El Capitan 10.11 or later, you don't need a USB flash drive to install Windows:

  • MacBook introduced in 2015 or later
  • MacBook Air introduced in 2015 or later2
  • MacBook Pro introduced in 2015 or later2
  • iMac introduced in 2015 or later
  • iMac Pro (all models)
  • Mac Pro introduced in late 2013

Install R Studio For Mac

For more information about using Windows on your Mac, open Boot Camp Assistant and click the Open Boot Camp Help button.

Latex For Mac

1. If you're installing Windows and macOS Mojave on an iMac (27-inch, Late 2012), iMac (27-inch, Late 2013), or iMac (Retina 5K, 27-inch, Late 2014) and your Mac is configured with a 3TB hard drive, learn about an alert you might see during installation.

Windows 10 Free Download For Mac

2. These Mac models were offered with 128GB hard drives as an option. Apple recommends 256GB or larger hard drives so that you can create a Boot Camp partition of at least 128GB.