Error in installing packages 'RGtk2' and 'rattle' in R

Edward M. picture Edward M. · May 18, 2017 · Viewed 15.4k times · Source

I tried to install R packages 'rattle' but when I typed

install.packages('rattle')

it returns

Warning in install.packages :
dependency ‘RGtk2’ is not available

So I tried install 'RGtk2',

install.packages('RGtk2')

it returns

Warning in install.packages :
package ‘RGtk2’ is not available (for R version 3.2.3)

My computer is windows 8.1, R version 3.2.3 and I'm working on the R studio.

Answer

Graham Williams picture Graham Williams · Jul 5, 2017

One possible solution as mentioned is to install an older version of RGtk2. For Windows this might be:

install.packages("https://cran.r-project.org/bin/windows/contrib/3.3/RGtk2_2.20.31.zip", repos=NULL)

Further suggestions can be found at https://rattle.togaware.com/rattle-install-troubleshooting.html