.BG
.FN ed
.TL
Invoke ed Text Editor
.CS
ed(data, file=tempfile("ed."))
.AG data
any S object.
.AG file
the name of the file on which the object should be written while
the editing is done.
.RT
the edited value of the object.
.SE
none.  It is important to realize that `ed' does not
change `data';
the returned value must be reassigned in order to
save your editing changes, as in the example.
.PP
If errors resulted during the evaluation of the expression containing the
editing, the file is retained and calling `ed' with no arguments will allow
re-editing the file.  This is typically useful if editing a function
definition produced a  syntax error.
.SA
`vi'.
.EX
ttt <- ed(ttt)
.KW manip
.WR
