You do not need to retype a function every time you want to
make a change. S-PLUS provides a function, ed allowing you to
edit functions in a special window. The function ed uses
its own editor, but you can specify that you would rather use
emacs.
> stdev <- ed(stdev, editor="emacs")The above command creates an emacs window in which the current definition of
stdev can be edited. Once editing is completed,
the new version is saved as stdev.
If you don't want to type editor="emacs" every time, create
your own function called edit, which invokes ed and uses emacs.
Question: How?