Installation of RGtk2 for Rattle

I Have been trying to install RGtk2(OS: WIN11) to run rattle as it only shows this is missing while the rattle() command is executed.
I have tried different methods searching on the internet could not make any one work. What is the right way for this installation.
IN almost every case where rgtk2 started installing it came up with error only.
This is the error that i get.
install.packages("https://cran.r-project.org/src/contrib/Archive/RGtk2/RGtk2_2.20.36.3.tar.gz", repos=NULL)
trying URL 'https://cran.r-project.org/src/contrib/Archive/RGtk2/RGtk2_2.20.36.3.tar.gz'
Content type 'application/x-gzip' length 2792517 bytes (2.7 MB)
downloaded 2.7 MB

  • installing source package 'RGtk2' ...
    ** package 'RGtk2' successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    using C compiler: 'gcc.exe (GCC) 12.3.0'
    gcc -I"C:/PROGRA~1/R/R-43~1.2/include" -DNDEBUG -D_R_=1 -DUSE_R=1 -mms-bitfields -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/gtk-2.0 -IC:/rtools43/x86_64-w64-mingw32.static.posix/lib/gtk-2.0/include -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/atk-1.0 -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/cairo -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/pango-1.0 -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/glib-2.0 -IC:/rtools43/x86_64-w64-mingw32.static.posix/lib/glib-2.0/include -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/libxml2 -IC:/rtools43/x86_64-w64-mingw32.static.posix/include/gdk-pixbuf-2.0 -IC:/rtools43/x86_64-w64-mingw32.static.posix/include -I. -DR_LEGACY_S_DEFS=1 -I"C:/rtools43/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RGtkDataFrame.c -o RGtkDataFrame.o
    In file included from ./RGtk2/atk.h:4,
    from RGtk2/gtk.h:4,
    from RGtkDataFrame.h:1,
    from RGtkDataFrame.c:1:
    ./RGtk2/gobject.h:375:1: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    375 | GTimeVal* asCGTimeVal(USER_OBJECT_ s_timeval);
    | ^~~~~~~~
    In file included from C:/rtools43/x86_64-w64-mingw32.static.posix/include/glib-2.0/glib/galloca.h:34,
    from C:/rtools43/x86_64-w64-mingw32.static.posix/include/glib-2.0/glib.h:32,
    from ./RGtk2/gobject.h:7:
    C:/rtools43/x86_64-w64-mingw32.static.posix/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
    580 | struct GTimeVal
    | ^~~~~~~~~
    ./RGtk2/gobject.h:376:1: warning: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Wdeprecated-declarations]
    376 | USER_OBJECT
    asRGTimeVal(const GTimeVal *timeval);
    | ^~~~~~~~~~~~
    C:/rtools43/x86_64-w64-mingw32.static.posix/include/glib-2.0/glib/gtypes.h:580:8: note: declared here
    580 | struct _GTimeVal
    | ^~~~~~~~~
    In file included from C:/rtools43/x86_64-w64-mingw32.static.posix/include/pango-1.0/pango/pango-font.h:25,
    from C:/rtools43/x86_64-w64-mingw32.static.posix/include/pango-1.0/pango/pango-attributes.h:25,
    from C:/rtools43/x86_64-w64-mingw32.static.posix/include/pango-1.0/pango/pango.h:25,
    from ./RGtk2/pango.h:8,
    from RGtk2/gtk.h:5:
    C:/rtools43/x86_64-w64-mingw32.static.posix/include/pango-1.0/pango/pango-coverage.h:28:10: fatal error: hb.h: No such file or directory
    28 | #include <hb.h>
    | ^~~~~~
    compilation terminated.
    make: *** [C:/PROGRA~1/R/R-43~1.2/etc/x64/Makeconf:265: RGtkDataFrame.o] Error 1
    ERROR: compilation failed for package 'RGtk2'
  • removing 'C:/Program Files/R/R-4.3.2/library/RGtk2'
    Warning in install.packages :
    installation of package ‘C:/Users/ADMINI~1/AppData/Local/Temp/Rtmp8EoC6u/downloaded_packages/RGtk2_2.20.36.3.tar.gz’ had non-zero exit status

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.