2

I just installed the RGtk2 package on a new machine and gladexmlnew seems to be missing (i.e. I get a could not find function gladexmlnew error after loading the RGtk2 package).

I have libglade, libglade2 and corresponding -devel packages installed.

What am I missing? The help file doesn't seem to help.


SOLUTION: I seem to have found the solution, so I am posting it here. Apparently libglade has been deprecated in favour of GTKBuilder and RGtk2 does not include it anymore.

This page has some informations on how to migrate from libglade to GTKBuilder.

nico
  • 50,859
  • 17
  • 87
  • 112
  • @Dirk Eddelbuettel: Sorry, forgot to specify. Linux, particularly Fedora. R version 2.12.0, RGtk2 version 2.20.3 – nico Nov 23 '10 at 19:49
  • The link to "this page" does not work anymore. Do you have a code snippet how to load a glade file now using RGtk2 and GTKBuilder? THX! – R Yoda Dec 13 '15 at 15:57
  • 1
    @RYoda maybe this? https://developer.gnome.org/gtk2/stable/gtk-migrating-GtkBuilder.html – nico Dec 13 '15 at 18:52
  • 1
    @nico: THX!!! I have now found demo source code that demonstrates how to use GTKBuilder: Load the `library RGtk2` and execute the command `demo(builder)`. It explains how to use the "new" **addFromFile** method of the class **gtkBuilder** – R Yoda Dec 13 '15 at 22:02

1 Answers1

2

Thanks for the follow-up. I have only two comments:

  1. Version 2.20.3 loads fine on my Ubuntu machines under R 2.12.0.

  2. A quick grep -i gladexmlnew in both the R/ and src/ directories of the RGtk2 package showed no hits, so this does not seem to be a symbol used by the package.

so it looks like this may be particular to your Fedora versions of the Gtk libraries. But that is just a guess on my part.

Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725
  • hmmm... I'm referring to this http://rss.acs.unt.edu/Rdoc/library/RGtk2/html/gladeXMLNew.html (sorry I forgot the capitalisation when writing the question, maybe that's why grep did not give any hits) – nico Nov 23 '10 at 20:21
  • I used `grep -i` which ignores case. And even expanding the search to all subdirectories via 'grep -rin gladeXMLNew .', it get no hits. Also note that the html is likely to be old as R no longer produces static html pages. – Dirk Eddelbuettel Nov 23 '10 at 20:26
  • Found the solution - editing my question. Thanks for your help Dirk. – nico Nov 23 '10 at 21:09