Skip to content

dget not restoring dput in R 2.6.0 (PR#10350)

1 message · Brian Ripley

#
On Wed, 17 Oct 2007, dstates at umich.edu wrote:

            
Not so, and it says so on the help page:

      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, 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.

Had you followed the advice, your example would have worked.

dump() is more accurate than dput(), and save() more so than either.