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.
R script in batch mode
2 messages · jusce, Brian Ripley
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