Re: [R] eval and tcltk : target of assignment expands to non-language object

2012-09-24 Thread peter dalgaard
On Sep 24, 2012, at 10:27 , vincent guyader wrote: > Hi everyone, > > I have a problem to assign a value with tcl/tk Not really. You'll get into the same sort of trouble if you try other kinds of complex assignments: > a <- 1:2 > eval(as.name("a"))[[1]] [1] 1 > eval(as.name("a"))[[1]] <- 3 Er

[R] eval and tcltk : target of assignment expands to non-language object

2012-09-24 Thread vincent guyader
Hi everyone, I have a problem to assign a value with tcl/tk ths is the code ( it should be simple to understand) : library(tcltk) valA<-tclVar("0") valB<-tclVar("0") valC<-tclVar("0") id<-"A" out<-"1" out2<-"2" print(paste("tclvalue(val",id,")",sep="")) # ok print(as.name(paste("tclvalue(val",