S.format(infile, outfile=tempfile("Sexpr"))
outfile.
infile are written
to
outfile
in standard S-PLUS deparse format,
using the current
width
and
length options.
It is a good practice to observe a standard format when communicating one's
source code to other users.
This function uses
sink,
so it will wipe out any
sink that is in effect.
edit myfile # write S-PLUS statements into myfile
S.format("myfile", "myfile2") # equivalent statements, nice format