Skip to content

R script in batch mode

2 messages · jusce, Brian Ripley

#
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?

How do I do that?

I'm using R under Linux.

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.
#
On Sun, 17 Apr 2011, jusce wrote:

            
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).
Which is not the 'at a minimum' information the posting guide asked 
you for.