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
Tcl 1
tclvalue(myvar)# Read its value
[1] 1
To make sure you create global variables in
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
2 matches
Mail list logo