From dstates at umich.edu  Wed Oct 17 05:05:07 2007
From: dstates at umich.edu (dstates at umich.edu)
Date: Wed, 17 Oct 2007 05:05:07 +0200 (CEST)
Subject: [Rd] dget not restoring dput in R 2.6.0 (PR#10350)
Message-ID: <20071017030507.EC9FC282EFF4@mail.pubhealth.ku.dk>

Full_Name: David States
Version: 2.6.0
OS: Windows XP64
Submission from: (NULL) (141.211.38.9)


# The pair of commands
#
# dput(object, "file.dput")
# object = dget("file.dput")
#
# should be a no op, but this is not working correctly for all objects.
#
# Simple example:
#
# make a simple object of class "hclust"
cl = hclust(dist(matrix(nrow=4,ncol=4, c(1:16))))
# save it to a file using dput
dput(cl, "cl.dput")
# the following two commands should give identical results, but they dont
str(cl)
str(dget("cl.dput"))
# plot also fails to interpret the labels on the restore object correctly
par(mfrow=c(2,1))
plot(cl)
plot(dget("cl.dput"))



[Rd] dget not restoring dput in R 2.6.0 (PR#10350)
dstates at umich.edu