Rattle: Installation on Macintosh OS X (Leopard and Lion)

Install Guide

The definitive guide to installing rattle on the Mac as of June 2018 comes via Zhiya Zuo where Yihui Xie (RStudio) noted that he has pre-built the binaries of RGtk2 and cairoDevice so that we can easily install rattle. Thanks to Yihui.

Zhiya's guide should be all that you need.

The material below is for archival purposes and generally can be ignored though retained here in case it helps others. Also, for trouble shooting see the Rattle Install Trouble Shooting.

Alternative Install Guides

Other contributions are included for information. Thanks to everyone who has contributed to getting Rattle running smoothly on the Mac.

Old Instructions

Please ensure you have at least

Thanks to Rashid Zaman [140331] and Ivan Salgo [140603] for confirming these requirements. Further information on installing the right version of GTK for R version 3 can be found on GitHub. Geoffrey Brown [150320] reports that for OSX 10.6.8, R 3.1.3 he installed XCode 3.2.6 and then install.packages("RGtk2", type="source") which worked for him.

Quick Start

The rest of the required libraries get installed as you use Rattle. We install RGtk2 and the Gtk libraries separately as they can take some time to download and install.

The details are below.

Dev Release

The latest development version is available directly from Togaware:
> install.packages("rattle", repos="http://rattle.togaware.com", type="source")

If you have issues with Rattle, then installing the latest development version is probably a good place to start.


1. Install Latest R

The first step is to install R

2. Install Rattle

Then install Rattle using R's package manager. As a separate step it is usually best to install the RGtk2 package which will download the GTK libraries for Mac OS/X and link them into R. This can take sometime and is a prerequisite for loading Rattle.

Note on Installation of Rattle on Mountain Lion

Thanks to Joe Trubisz for this script that he tested on several different machines and confirms it works (15 November 2013).

  1. Start R
  2. > install.packages("RGtk2", dependencies=TRUE)
  3. > install.packages("rattle", dependencies=TRUE)
    Wait ...
  4. Once done, q()
    If you have a "unable to load" issue, then you most likely do not have the correct GTK+ library for Mountain Lion. If you have this issue, then kill X11 and R, go to ATT and download: GTK_2.24.17-X11.pkg and install it.
  5. Restart R
  6. > library(RGtk2)
    Once X11 starts, go to the task bar and select X11->Check for updates. If there is an update, do the update, q() after the update and kill X11. If no update is present, skip to step 8.
  7. Redo steps 5 and 6 above
  8. demo(appWindow)
    Make sure that you can close the window successfully.

    If you are here, then you should be able to:
  9. > library(rattle)
  10. > rattle()

    For trouble shooting see the Rattle Install Trouble Shooting.

    Shop at Amazon

    The following advertisement from Google is not endorsed by Togaware.