[R-SIG-Mac]Prettying up functions

Peter Macdonald pdmmac@mcmail.cis.mcmaster.ca
Sun, 13 Jan 2002 10:13:29 -0500 (EST)


I like the way Splus "pretties up" functions with consistent spacing,
indents, etc. automatically when you exit fix() but R doesn't seem to do
this so I wrote

> fixup
function (myfun)
{
    dput(myfun, "fixup.tmp")
    dget("fixup.tmp")
}

Is there some other way to do this?

*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
 Peter D.M. Macdonald, D.Phil.      McMaster University
 Professor of Math & Statistics     Hamilton, Ontario, Canada L8S 4K1
*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*