[R] BATCH and tcltk
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Thu Apr 17 16:20:53 CEST 2003
"Unternährer Thomas, uth" <uth at zhwin.ch> writes:
> Hi R-hackers
> I try to write a batch (in Windows, i have to use!) with
> Rcmd BATCH D:\Test.R D:\Test.Rout and
> Rterm.exe --no-restore --no-save < D:\Test.R > D:\Test.Rout.
> In my file Test.R are any tk-codelines (like: Window1 <- tktoplevel(); ... tkbutton...).
> It works not interactifly, what is written in Rcmd BATCH --help.
> Exist there a way to do it all the same?
> Please help... Otherwise i have to use Excel to get the GUIs .
> (and sorry about my english, it's terrible)
I haven't messed with this on Windows for a while, but it might help
to stick a tkwait.variable("foo") or something like that at the end of
your input script. The thing is to get Tcl's event loop going - R
usually drives it from the keyboard entry loop, but there is none in
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help