From P.Dalgaard at biostat.ku.dk  Thu Sep 25 16:07:00 2008
From: P.Dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu, 25 Sep 2008 16:07:00 +0200
Subject: [Rd] R --interactive and readline() creates infinite loop
In-Reply-To: <f8e6ff050809250647l5dd8c437md272ee0f3761e771@mail.gmail.com>
References: <98A53690-6407-4E86-A094-27707C77C744@ucl.ac.uk>
	<f8e6ff050809250647l5dd8c437md272ee0f3761e771@mail.gmail.com>
Message-ID: <48DB9B04.8060305@biostat.ku.dk>

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



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