dput opens file and deparses the object x into
that file. The object name is not written (unlike dump).
If x is a function the associated environment is stripped.
Hence scoping information can be lost. Deparsing an object is difficult, and not always possible. With the
default control, dput() attempts to deparse in a way
that is readable, but for more complex or unusual objects (see
dump, not likely
to be parsed as identical to the original. Use control = "all"
for the most complete deparsing; use control = NULL for the
simplest deparsing, not even including attributes.
dput will warn if fewer characters were written to a file than
expected, which may indicate a full or corrupt file system.
To display saved source rather than deparsing the internal representation
include "useSource" in control. R currently saves
source only for function definitions.