[Rd] R --interactive and readline() creates infinite loop

Peter Dalgaard P.Dalgaard at biostat.ku.dk
Thu Sep 25 16:07:00 CEST 2008


hadley wickham wrote:
>> I assume, given this outcome, that this is not the intended use of
>> --interactive, but I still wonder if there is any way to achieve an
>> interactive session based on a predefined set of commands without writing a
>> completely new front-end (overkill, surely?).
>>     
>
> When you say an interactive session, do you mean that the output
> should be identical to what would have happened if you had copied and
> pasted the code in to an R session?  I'm working on some code that
> allows you to do this, based around parse and eval.
>   
I assumed that the point was to allow some code to run, possibly with
user input, and then continue in an interactive session.

It is, BTW, not clear to me whether or not  it could be done using .First().



-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-devel mailing list