[R] appending objects to a file created by save()

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Mar 10 10:10:33 CET 2006


On Fri, 10 Mar 2006, Rajarshi Guha wrote:

> Hi,
>  I've been slowly transitioning to saving sets of objects for a project
> using save() rather than cluttering my workspace and then doing
> save.image()
>
> However, sometimes after I have done say:
>
> save(x,y,z, file='work.Rda')
>
> and I reload it a little later and  I see that I also want to save
> object p. Currently I need to do:
>
> save(x,y,z,p, file='work.Rda')
>
> Is there any way to instruct save to append an object to a previously
> created binary data file?

No.  The save() format is not a concatenated set of objects.  It is a 
serialized version of a single object, the R list of the objects named 
on the save() call.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list