Re: [Rd] R script in batch mode

From: Prof Brian Ripley <>
Date: Mon, 18 Apr 2011 08:42:17 +0100 (BST)

On Sun, 17 Apr 2011, jusce wrote:

> Hello All!
> I'm a new R user, with no much experience.
> I have a R script (downloaded from internet) which has user interaction
> using "readline()" function.
> So as I have to run it repeatdly (with some different options) I was
> planning to do it on a BATCH mode.
> Is there any way to answer the "readline()" questions from a batch file?

No. Please do read its help before posting (as the posting guide asked you to).

      In non-interactive use the result is as if the response was RETURN
      and the value is "".

library(fortunes); fortune('WTFM') applies (and I have no idea why you asked this R-help question on R-devel).

> How do I do that?
> I'm using R under Linux.

Which is not the 'at a minimum' information the posting guide asked you for.

> Thanks,
> Jose
> --
> View this message in context:
> Sent from the R devel mailing list archive at
> ______________________________________________
> mailing list

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list

Received on Mon 18 Apr 2011 - 07:48:38 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 14:50:50 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive