From ripley at stats.ox.ac.uk  Mon Apr 18 09:42:17 2011
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 18 Apr 2011 08:42:17 +0100 (BST)
Subject: [Rd] R script in batch mode
In-Reply-To: <1303093777169-3456471.post@n4.nabble.com>
References: <1303093777169-3456471.post@n4.nabble.com>
Message-ID: <alpine.LFD.2.02.1104180840000.5848@gannet.stats.ox.ac.uk>

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: http://r.789695.n4.nabble.com/R-script-in-batch-mode-tp3456471p3456471.html
> Sent from the R devel mailing list archive at Nabble.com.
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] R script in batch mode
Prof Brian Ripley