Re: [R] read variable global in R tcltk

2008-04-22 Thread Philippe Grosjean
Read ?tclvalue. For instance, you can do: > tclvalue("tcl_library") # Read the content of a Tcl variable [1] "/usr/local/lib/tcl8.4" > .Tcl("set myvar 1") # Create a variable inside Tcl 1 > tclvalue("myvar")# Read its value [1] "1" To make sure you create global varia

[R] read variable global in R tcltk

2008-04-21 Thread Handayani Situmorang
I have any problem with my code. I build a small GUI in R with tcltk package. the proolem is I don't understand how to make a variable value can be read by R from a function. the variable value can only read if it's called via tcltk widgets and pass it to another function. i think the point is