[R] About Tcl/Tk after command in R

davide.massidda at unipd.it davide.massidda at unipd.it
Thu Jan 15 16:18:24 CET 2009


Dear R-helpers,
I have a problem with the tcl "after" instruction. When I send:

> library(tcltk)
Loading Tcl/Tk interface ... done

> tcl("after",1000,cat("try tcl after\n"))
try tcl after
<Tcl>

the tcl command works fine. Similarly, the tcl command:

> tcl("after",1000,plot(rnorm(100)))
<Tcl>

works fine. But, if I send the command:

> tcl("after",1000,10^2)
<Tcl> after#0

appears a popup window which reports:

Error: invalid command name “100”

Why?



Davide Massidda

Università di Padova
Dipartimento di Psicologia Generale
Via Venezia, 8 - 35131 Padova - Italy

QPLab http://qplab.psy.unipd.it/
tel. +39 049 8276905




More information about the R-help mailing list