[R] R/Tk from batch file
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Jan 28 17:00:17 CET 2002
David Lucy <dlucy at maths.ed.ac.uk> writes:
> Dear R-help,
>
> Reccently I've been working on sample size estimates for our forensic
> scientists and have to make the work accessible to them, preferably
> in some Windows based graphical form. The obvious choise was Tk via R,
> so I now have a couple of very nice, user friendly front ends for
> calculating betas and beta-binomials which run equally well under
> Windows and other systems (same code - amazing).
This almost works, but there seems to be a bug in Rterm/Tcl preventing
R from closing up properly (in w98 under win4lin).
$ cat win/Programmer/R/rw1040/bin/tkR.bat
Rterm --vanilla < tk.R
$ cat win/Programmer/R/rw1040/bin/tk.R
library(tcltk)
tt <- tktoplevel()
v <- tclVar()
tkpack(tkcheckbutton(tt,variable=v))
tkwait.variable(v)
tkdestroy(tt)
q("no")
Then make a shortcut that calls up tkR.bat.
For now, it might be better to just leave the process hanging at
tkwait.variable("fubar")
and close stuff up by closing the controlling "DOS-box".
--
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
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list