This short tutorial teaches you how to install GTK+ for R under windows.
- From the R command line (or in R-Studio), install the RGtk2 package by running
This might fail with the warning that package ‘RGtk2’ is not available (for R version xxx). If so, just runR1install.packages("RGtk2", depen=T, type="source")
to install the RGtk2 package directly from its source code (this might take a few minutes).
Load the package by running:R1library(RGtk2)
This will notice the missing GTK and prompt you to install it.
Choose “Install GTK+” when prompted, it might take a few minutes to install. Afterwards it will likely still complain (restart required).