Re: [R] Pause in non-interactive mode

2010-02-05 Thread Jonne Zutt
stdin", n=1)) > message("b") > > and see ?stdin and ?file for why it works. > > On Fri, 5 Feb 2010, Jonne Zutt wrote: > >> Dear all, >> >> I've found this nice code fragment on the web >> (from Jan T. Kim if I'm correct):

[R] Pause in non-interactive mode

2010-02-05 Thread Jonne Zutt
Dear all, I've found this nice code fragment on the web (from Jan T. Kim if I'm correct): hitReturn <- function(msg) { invisible(readline(sprintf("%s -- hit return", msg))); } But it does not seem to work in non-interactive mode ( I mean, when I start a script like this: R --vanilla < sc

Re: [R] tcltk scrollbar

2007-10-08 Thread Jonne Zutt
Maybe I do... I think the OP means the first scrollbar isn't tight to the first listbox. This is due to the length of the "Basic Manipulation" label. For example, try to pack this label as follows: tkgrid(lbl.MainT,columnspan=2,sticky="nw") That helps? Jonne. On Mon, 2007-10-08 at 08:37 +0200

[R] leaps: regsubsets, formula including interactions

2007-10-03 Thread Jonne Zutt
Hi R-list members, Could somebody explain to me the meaning of the '.' in the formula SumTL~. below? I could not find it in the help pages. I'm guessing it is substituted by v1+v2+v3+.. for all independent variables vi. Furthermore, I would like to add interaction effects to the model, is this a

Re: [R] Running tcltk From a batch file

2007-09-19 Thread Jonne Zutt
Hi Samuel, An easy solution is the following. Let the R script wait until a certain variable (ok_to_quit) got changed. Hope it helps, Jonne. ## in a file called test.R quit <- function() { .Tcl("set ok_to_quit 1") tkdestroy(tt) } require(tcltk) tt <<- tktoplevel() OK.but <- tkbutton(tt,text