
- INSTALL XQUARTZ FOR R HOW TO
- INSTALL XQUARTZ FOR R FOR MAC
- INSTALL XQUARTZ FOR R MAC OS X
- INSTALL XQUARTZ FOR R MAC OS
This might fail with the warning that package ‘RGtk2’ is not available (for R version xxx) depending on your version of R. If you get this info box, follow the installation instructions to install the X11 replacement XQuartz (you might have to log out and back in after installation)

INSTALL XQUARTZ FOR R MAC OS
In newer versions of Mac OS X, this will prompt an info box that X11 is no longer included with OS X.
INSTALL XQUARTZ FOR R MAC OS X
Check if you have the X11 application (relevant for newer versions of Mac OS X such as Mountain Lion, Maverick, Yosemite, etc.): go into your Applications folder and look for X11 in the Utilities subfolder.Optional but recommended: install R-Studio.
INSTALL XQUARTZ FOR R FOR MAC

For graphical user interfaces (GUIs) from R, you need both the X Window System (included by default with Mac OS X before Mountain Lion, i.e. Additionally, I highly recommend R-Studio for working with R regularly (but the basic command line will work just fine for most applications). When in doubt, I recommend giving the quick installation below a try and if RGtk2 does not install properly right away, not to waste any time trying to get it to work and instead just taking the work-around route below. For example, with R 3.1.1 and Mac OS X 10.9.3 it seems to work mostly without trouble (tested in July 2014), but with R 3.1.2 and Mac OS X 10.10.1, the work-around was necessary again (tested in December 2014).
INSTALL XQUARTZ FOR R HOW TO
Certain combinations of R and Mac OS X have trouble with this ( details on the problem and instructions on how to work around it below). With some versions of R > 3.1 and Mac OS X, GTK+ now works out of the box with the following installation instructions. in installations from GitHub using devtools, try: install_github(., reload=F, quick=T). If the other package depends on RGtk2 and installation from source fails during package test loading with an error that RGtk2 could not be found, try installing without automatic reload, e.g. Note: for some reason on Windows 8, the RGtk2 package is not always recognized during compilation of other source packages, even if it can be loaded and works perfectly fine.

Afterwards it will likely still complain (restart required). Choose "Install GTK+" when prompted, it might take a few minutes to install.

This will notice the missing GTK and prompt you to install it. Then load the package by running: library(RGtk2).If so, just run install.packages("RGtk2", depen=T, type="source") instead to install the RGtk2 package directly from its source code (this might take a few minutes). This might fail with the warning that package ‘RGtk2’ is not available (for R version xxx) if your version of R has been released very recently. in R-Studio), install the RGtk2 package by running: install.packages("RGtk2", depen=T) optional but recommended: install R-Studio.Once R is installed, you can install GTK directly from within R (details below). Installation information for R with GTK+ Windows
