Cannot find 'addActions' for classes GtkActionGroup, GObject, RGtkObject

5 views
Skip to first unread message

Wang Lei

unread,
Jan 2, 2019, 11:25:39 AM1/2/19
to brainGraph-help
Hi, Christopher

    I have been looking forward  for this great package for years! Just few days ago, I saw your answer in FSL mailing list which mentioned this R package. I was excited and found your github, can't wait to install your package.

    I have been successfully installed brainGraph 2.7.0 in a Mac OS High Sierra(10.13.6), with Rstudio 1.1.463 and R 3.5.1 . When it comes to GUI part, I read the topic in your user-guide mentioned solution, and did a lot of google search. 
I downloaded and installed the GTK2 from http://r.research.att.com/libs/GTK_2.24.17-X11.pkg, then try to install Rgtk and cairoDevice from source  in R. 
I met the "configure: error: GTK version 2.8.0 required"  situation, and then I tried to homebrew to install gtk+.
Finally, I got  Rgtk and cairoDevice installed.

I tried to load brainGraph package, and plot_brainGraph_gui() to test  GUI function, I only get this error meassage :

> plot_brainGraph_gui()
Error in `[[.GObject`(x, member) : 
  Cannot find 'addActions' for classes GtkActionGroup, GObject, RGtkObject

Meanwhile, a small window titled "brainGraph" showed up, with only blank area.

Then, I tried to install brainGraph in a laptop with Ubuntu18.04, R 3.5.1 and RStudio 1.1.463. I was expecting things would be easier in Linux, but I was wrong.
GTK2.8.0 was still needed to install in Ubuntu, so I googled again, and installed GTK 2.0 dev with 'sudo apt install  xxx '  CMD.
Then I installed Rgtk and cairoDevice from source.
But the same error happened when I was testing GUI function, again, just the same like my Mac OS, and so was the empty window.

I googled this error msg but this time I get nothing, no clue.

Thank you in advance, please help. If you need more info, I am happy to assist.

Wang Lei

unread,
Jan 2, 2019, 12:03:52 PM1/2/19
to brainGraph-help
Update some progress:
install.packages("gWidgets", depen=T)
install.packages("gWidgetsRGtk2", depen=T)

then I did 
library(gWidgets)
options(guiToolkit="RGtk2")
win
<- gwindow("test")
glabel("test label", container = win)
gedit("test text field", container = win)

I saw a window, looks correct, not blank.
Then I tried 
plot_brainGrapgh_gui()

This time, finally No Error and something showed up now. 

I can't believe, the window looks fine now. I still don't know why. But it seems the gui part finnally works (?)

Chris Watson

unread,
Jan 2, 2019, 1:34:38 PM1/2/19
to brainGr...@googlegroups.com
Thank you for sharing your solution. I am glad you were able to install the package without errors now. I will add your solution to the User Guide so others will be able to install easily.

If you have any other issues, please let me know.
Chris

--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-he...@googlegroups.com.
To post to this group, send email to brainGr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/b17b740a-04ff-40e2-a8b2-9b86602640ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages