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="")
>
>>f<-function(){
>
> + a<<-"pipo"
> + }
>
>>f()
>>a
>
> [1] "pipo"
>
>>tclvalue(a)
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"
tclvalue(a)
Uwe Ligges
> Error in structure(.External("dotTcl", ..., PACKAGE =
"tcltk"), class > "tclObj") :
> [tcl] can't read "pipo": no such variable.