dput(x, file="")
dput opens file and deparses the object x into that
file.
If x is a function the associated environment is stripped.
Hence scoping information can be lost.
See Also
dump, dget, write.
Examples
# write an ASCII version of mean to the file "foo"
dput(mean,"foo")