Re: [Rd] R script in batch mode

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
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: 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


______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

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 https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive