From luke at stat.uiowa.edu  Thu Feb 26 18:31:42 2004
From: luke at stat.uiowa.edu (Luke Tierney)
Date: Thu Feb 26 18:32:10 2004
Subject: [Rd] save() size in XDR
In-Reply-To: <20040226171250.97761.qmail@web12401.mail.yahoo.com>
Message-ID: <Pine.LNX.4.44.0402261127220.23281-100000@itasca.stat.uiowa.edu>

On Thu, 26 Feb 2004, Nathan Whitehouse wrote:

> > 
> > I don't think so, though you can guess:  integers
> > are stored in 4
> > bytes, floats in 8, etc.
> 
>   I think this would be good if we only needed a rough
> estimate, but we need something precise.  
> 
> > One way to solve this problem would be to create a
> > connection that did
> > nothing except keep track of a file position, then
> > do the save to that
> > connection.  However, it's not easy to define new
> > connection types.
> > Might be a nice package to write to allow such a
> > thing.
> 
>   That seems reasonable to me.  I'll look into it; are
> there any resources at all for how to define new
> connection types?
> 
>   Thanks much,
> 
> 
> =====
> Nathan Whitehouse
> Statistics/Programming
> Baylor College of Medicine
> Houston, TX, USA
> nlwhitehouse@yahoo.com
> work: 1-713-798-9029
> cell:    1-512-293-5840
> 
> http://rho-project.org: rho- open source web services for R.
> http://franklin.imgen.bcm.tmc.edu: Shaw laboratory, bcm.
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

On Unix-like systems something like

> f<-pipe("wc",open="wb")
> save(list=ls(all=TRUE),file=f)
> close(f)
      5      14     200

should work.

Best,

luke

-- 
Luke Tierney
University of Iowa                  Phone:             319-335-3386
Department of Statistics and        Fax:               319-335-3017
   Actuarial Science
241 Schaeffer Hall                  email:      luke@stat.uiowa.edu
Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu


[Rd] save() size in XDR
Luke Tierney