when I install.packages(\"RGtk2\") in R this I get this problem:
fatal error: \'gdk/gdkx.h\' file not found
#include
^
1 erro
The installation of RGtk2 can be much easier now. First install Homebrew, then in R:
system('brew install gtk+')
install.packages(
'RGtk2', type = 'mac.binary.el-capitan', repos = 'https://macos.rbind.org'
)
If you do not prefer using the repository https://macos.rbind.org (which was created by me) to install the pre-built binary package, you may just install RGtk2 from source:
system('brew install gtk+')
install.packages('RGtk2', type = 'source')
In case anyone is curious about the technical details, the error "'gdk/gdkx.h' file not found" has been fixed in this commit in the RGtk2 repo on Github.