when I install .packages ("RGtk2") in R, I get this problem:
fatal error: 'gdk/gdkx.h' file not found #include <gdk/gdkx.h> ^ 1 error generated. make: *** [Rgtk.o] Error 1 ERROR: compilation failed for package 'RGtk2' * removing '/usr/local/lib/R/3.4/site-library/RGtk2' * restoring previous '/usr/local/lib/R/3.4/site-library/RGtk2'
I install GTK using brew on macOS Sierra 10.12.3
According to the INSTALL documentation , you must first install the Gtk libraries:
In all cases (e.g. Unix or Windows, source or binary) you will need to get the appropriate Gtk libraries.On Windows, you can download the GTK Developer Pack from http://gladewin32.sourceforge.net/For Unix, you can get the source files for different libraries from ftp://ftp.gtk.org/pub/gtk/v2.8/GTK makes extensive use of other libraries and specific versions of these dependent libraries. As a result, installing GTK (under Unix) can be time-consuming and, apparently, an indirect process that involves installing many sub-libraries.
In all cases (e.g. Unix or Windows, source or binary) you will need to get the appropriate Gtk libraries.
On Windows, you can download the GTK Developer Pack from http://gladewin32.sourceforge.net/
For Unix, you can get the source files for different libraries from ftp://ftp.gtk.org/pub/gtk/v2.8/
GTK makes extensive use of other libraries and specific versions of these dependent libraries. As a result, installing GTK (under Unix) can be time-consuming and, apparently, an indirect process that involves installing many sub-libraries.
I suspect that HomeBrew Gtk cannot be installed on your system properly.
Further research reveals similar issues as well as suggested troubleshooting methods to get Gtk and RGtk2 to work together.
RGtk2
Source: https://habr.com/ru/post/1270306/More articles:Jenkins Artifactory plugin gives an unexpected character when you try to download large artifacts - nginxIs printing a member pointer specified by the user - c ++Using Babel-generated AMD modules - javascriptComparing values from one data frame with values from columns in another data frame and retrieving data from the third column - pythonHow to perform a single operation on multiple columns of a Dataframe - pythonto create a pirate plot in the sea (a combination of a window and a plot plot) - pythonThe same form for creating and editing Angular4 data - angularWhy conditional attribute methods are not allowed to return other than void - c #Why is the vector :: push_back of a local variable not optimized? - c ++Why is the last assignment of a variable in a function not considered a movement? - c ++All Articles