[R] calling an editor on MAC and Linux

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Fri Jun 14 11:39:01 CEST 2002


On 14 Jun 2002, Peter Dalgaard BSA wrote:

> ripley at stats.ox.ac.uk writes:
>
> > R has an edit command that you could use!
> >
> > edit(file=outFile) is simple and system-independent.  'Nuff said?
>
> It doesn't work for general file editing (and isn't documented to do
> so):
>
> > edit(file="foo")
> Error in edit(name, file, editor) : An error occurred on line 3
>  use a command like
>  x <- edit()
>  to recover
>
> ...which is little wonder since "foo" contained an email. It will try
> to eval() the contents, which I don't think is desirable in all cases.

But I thought it was what Niels Waller wanted: maybe I misunderstood.

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

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list