[R] Ideas needed on automation of R
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Jan 13 08:50:03 CET 2003
On Sun, 12 Jan 2003, Rex_Bryan at urscorp.com wrote:
> I need some guidance on what is the best way to automate R I am aware of
> First question: Is it true that R is not currently OLE accessible under
> Windows 2000?
True. No one has announced an intention to contribute such functionality,
> Second question: Is there an R command that echoes all R Console results to
> a run log system file?
No. Why do you want to use the `R console' (presumably RGui) to do that?
Rterms is provided.
> My first attempt to write a run log file is the example from the R Data
> Inport/Export documentation.
> > zz<- "textConnection("ex.lm.out","w")
^ is an error
> > example(lm, prompt.echo = ">")
> > sink()
> > close(zz)
> I can't find the file "ex.lm.out" anywhere on my system's drive. But the
> file exists in R as confirmed by the next command:
> > cat(ex.lm.out, sep="\n")
No, ex.lm.out is an R object: please do read the help for textConnection().
You can sink directly to a file.
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help