From andy_liaw at merck.com  Tue Sep 30 14:57:20 2003
From: andy_liaw at merck.com (Liaw, Andy)
Date: Tue Sep 30 19:57:01 2003
Subject: [Rd] dump/source problem with hclust object (PR#4361)
Message-ID: <3A822319EB35174CA3714066D590DCD50205CBE1@usrymx25.merck.com>

?dump says:

Details:

     At present the implementation of `dump' is very incomplete and it
     really only works for functions and simple vectors.

     [...]

     The function `save' is designed to be used for transporting R data
     between machines.

So I guess, technically, this is not a bug, nor is your other example.  (An
"hclust" object is hardly a simple vector.)

Andy


> -----Original Message-----
> From: kleiweg@let.rug.nl [mailto:kleiweg@let.rug.nl] 
> Sent: Tuesday, September 30, 2003 1:29 PM
> To: r-devel@stat.math.ethz.ch
> Cc: R-bugs@biostat.ku.dk
> Subject: [Rd] dump/source problem with hclust object (PR#4361)
> 
> 
> 
> 
>     library(mva)
>     data(USArrests)
>     hc <- hclust(dist(USArrests), "ave")
> 
>     plot(hc)              # OK
> 
>     dump(c("hc"), "tst")
>     rm(hc)
>     source("tst")
> 
>     plot(hc)              # Error in plot.hclust(hc) : 
> invalid dendrogram input
> 
> 
> The same problem occurs with dput/dget
> 
> 
> 
> 
> --please do not edit the information below--
> 
> Version:
>  platform = i686-pc-linux-gnu
>  arch = i686
>  os = linux-gnu
>  system = i686, linux-gnu
>  status =
>  major = 1
>  minor = 7.1
>  year = 2003
>  month = 06
>  day = 16
>  language = R
> 
> Search Path:
>  .GlobalEnv, package:methods, package:ctest, package:mva, 
> package:modreg, package:nls, package:ts, Autoloads, package:base
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list 
> https://www.stat.math.ethz.ch/mailman/listinfo> /r-devel
>


[Rd] dump/source problem with hclust object (PR#4361)
Liaw, Andy