[Rd] save() size in XDR
Luke Tierney
luke at stat.uiowa.edu
Thu Feb 26 18:31:42 MET 2004
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 at 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 at 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 at stat.uiowa.edu
Iowa City, IA 52242 WWW: http://www.stat.uiowa.edu
More information about the R-devel
mailing list