plot_brainGraph_gui() cannot change value of locked binding for 'graphObj'

56 views
Skip to first unread message

Brian Kim

unread,
Nov 19, 2020, 5:15:00 PM11/19/20
to brainGraph-help
Hi,

First of all, thanks for the package!

I'm using R version 3.6.3 with brainGraph 3.0.0, igraph 1.2.6, on a Linux machine (Ubuntu 18). Whenever, I try to run plot_brainGraph_gui() and enter in my graph names, I get the following error:

Error in graphObj[[1L]] <<- graphObjEntry[[1L]]$getText() : 
  cannot change value of locked binding for 'graphObj'

I tried it from both RStudio and command line. I enter my graph name as follows: "G[[1]][[1]]". I don't think it has to do with the existence of my variable because I get the same error regardless of whatever String I enter (for example, "test"). Any help would be appreciated!

Sincerely,
Brian 

Chris Watson

unread,
Nov 19, 2020, 5:24:07 PM11/19/20
to brainGr...@googlegroups.com
Can you try entering this code before launching the GUI:

graphObj <- plotdev <- vector('list', length=2)

It should be done automatically but I had seen this same issue in the past.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/ce8c145d-4c16-44a3-b897-47d5ee6eeac1n%40googlegroups.com.

Brian Kim

unread,
Nov 19, 2020, 5:38:14 PM11/19/20
to brainGr...@googlegroups.com
I'm getting the same error. Tried it on RStudio and command line again.

Chris Watson

unread,
Nov 19, 2020, 5:43:41 PM11/19/20
to brainGr...@googlegroups.com
Can you try this code, then:

utils::globalVariables(c('graphObj', 'plotdev'))

Brian Kim

unread,
Nov 19, 2020, 5:58:52 PM11/19/20
to brainGr...@googlegroups.com
Same issue on both. I tried the two approaches together and by themselves as well.

Chris Watson

unread,
Nov 19, 2020, 6:06:17 PM11/19/20
to brainGr...@googlegroups.com
Can you confirm that you are not including quotation marks when entering the object names?

Another thing you can try is to instead type the following before launching the GUI:

rm(graphObj, plotdev)

Or

graphObj <- plotdev <- NULL

If neither of those work, I will have to figure out a solution and update the package.

Finally, if you clone the GitHub repo somewhere locally on your machine, you can try to source the "zzz.R" script (which is in the "R" directory) before doing anything else.

Brian Kim

unread,
Nov 19, 2020, 7:28:49 PM11/19/20
to brainGr...@googlegroups.com
There's the same issue. I am not using quotation marks.
I've noticed this stackoverflow post that states that the "<<-" in " graphObj[[1L]] <<- graphObjEntry[[1L]]$getText()" might be the issue.

Reply all
Reply to author
Forward
0 new messages