[R] tkoptionmenu

Spencer Graves spencer.graves at pdf.com
Thu Mar 6 18:42:04 CET 2003

Regarding "1", both "cat(x)" and "print(x)" have worked for me, 
depending on the class of "x".  To get extra labeling, sometimes I have 


and variants on that.
Hope this helps.
Spencer Graves

janet rosenbaum wrote:
> I have two questions:  one so easy that I apologise for it in advance 
> and one maybe more obscure:
> 1.  Interactively, typing the variable name will cause its value to print.
> How do I print out a variable's value inside of a script?
> I've tried cat("Field separator" fsep) and variations thereon, and
> haven't found anything that works.
> 2.  I also have a tcltk in R question.  
> How do you use the command tkoptionmenu in R?  
> The following are both valid syntax and both create the desired menu, 
> but neither changes the variable fsep.
> septype.menu <- tkoptionmenu(septype,fsep, ",",";", ".", "\t", " ", "")
> septype.menu <- tkoptionmenu(septype,variable=fsep, ",",";", ".", "\t", " ", "")
> septype is the frame that optionmenu is placed in, and fsep is
> the variable whose value I want to change.  
> I consulted with the tcltk documentation and none of their syntax or
> variations thereon works.  
> Thanks,
> Janet Rosenbaum
> Center for Basic Research in the Social Sciences, Harvard University
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

More information about the R-help mailing list