[R] help with tclVar

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jul 1 09:50:27 CEST 2004

solares at unsl.edu.ar wrote:

> Hi, I can' t load a variable tcltk declared with tclVar, why is this?, the
> exmple above explain me ,Thanks Ruben
> a<-tclVar(init="")
> + a<<-"pipo"
> + }
> [1] "pipo"

He? You have initialized "a" correctly at the beginning, but overwritten 
by a character vector. Now it is no longer of class "tclVar", so what do 
you expect?

I guess you are going to use something like

  tclvalue(a) <- "pipo"

Uwe Ligges

> Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
> "tclObj") :
>         [tcl] can't read "pipo": no such variable.

More information about the R-help mailing list