Re: [R] tcltk: write '[' and ']' in a table cell

2016-01-21 Thread peter dalgaard
“Right now I’m having amnesia and déjà vu at the same time. I think I’ve forgotten this before.” ― Steven Wright Check if this might be the same issue as the one of embedded spaces in https://stat.ethz.ch/pipermail/r-help/2009-January/378558.html -pd > On 21 Jan 2016, at 02:12 , Dalthorp,

Re: [R] tcltk: write '[' and ']' in a table cell

2016-01-21 Thread Dalthorp, Daniel
Many thanks, Peter. Simple, works perfectly, and nigh on impossible to figure out without your help. To summarize...in my example, I need to do: junk[[0,0]] <- as.tclObj(lbl,drop=T) # instead of junk[[0,0]]<-lbl It works for spaces, brackets, parentheses, and all manner of special characters.

[R] tcltk: write '[' and ']' in a table cell

2016-01-20 Thread Dalthorp, Daniel
I know it should not be difficult to write the string: i<-4 j<-17 lbl<-paste0("[", i, ", ", j, "]") # to a table, but I'm having a devil of a time trying to figure out how to do it. # the following gives lbl surrounded by braces. tt<-tktoplevel() tfr <- tkframe(tt) tkgrid(tfr) junk<-tclArray()