[R] Rcmd BATCH

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Wed Mar 12 20:54:57 CET 2003


On Wed, 12 Mar 2003, Paolo Tenconi wrote:

> Hello,
> I've a question: I invoke R from a text editor in a Win2000 operating system using 
> 
> Rcmd.exe BATCH inFile outFile
> 
> I've two problems:
> a) If I use windows() as graphics device, all windows close immediately after script execution,
>    how can I let them not to die?

This has been discussed frequently, so you may wish to search the 
archives.

Require some user intervention, e.g. by calling a dialog box by a call to

winDialog("ok", "click to finish the script")

> 
> b) Is it possible to redirect the content of outFile to the console output?

No.  Rcmd BATCH does not have a console! But see the rw-FAQ for ways to
send output to a command prompt window:  Rcmd BATCH is just a wrapper.

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



More information about the R-help mailing list