This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/dput.html
dput {base}R Documentation

Write an Internal Object to a File

Usage

dput(x, file = "")
dget(file)

Value

dput opens file and deparses the object x into that file. The object name is not written (contrary to dump). If x is a function the associated environment is stripped. Hence scoping information can be lost.

Using dget, the object can be recreated (with the limitations mentioned above).

See Also

deparse, dump, write.

Examples

## Write an ASCII version of mean to the file "foo"
dput(mean, "foo")
## And read it back into `bar'
bar <- dget("foo")

[Package base version 0.60 ]