RE: [R] How to add an object to an RData file ?

2004-07-29 Thread Ernesto Jardim
On Wed, 2004-07-28 at 20:07, Thomas Lumley wrote: On Wed, 28 Jul 2004, Liaw, Andy wrote: I guess it would be nice if save() has an `append' option... It would still have to read it in and out again, and then we would have all the issues about multiple objects with the same name.

[R] How to add an object to an RData file ?

2004-07-28 Thread Ernesto Jardim
Hi, I've saved an RData file with save and now I want to add a new object to this file. At the moment I do: attach(file.RData) save(list=c(new,obj, ls(pos=2)), file=file.RData, compress=T) detach() Is there a quicker method that just add the object to the file ? Thanks EJ

Re: [R] How to add an object to an RData file ?

2004-07-28 Thread Roger D. Peng
I can't think of a faster way. -roger Ernesto Jardim wrote: Hi, I've saved an RData file with save and now I want to add a new object to this file. At the moment I do: attach(file.RData) save(list=c(new,obj, ls(pos=2)), file=file.RData, compress=T) detach() Is there a quicker method that just add

RE: [R] How to add an object to an RData file ?

2004-07-28 Thread Liaw, Andy
I guess it would be nice if save() has an `append' option... Andy From: Roger D. Peng I can't think of a faster way. -roger Ernesto Jardim wrote: Hi, I've saved an RData file with save and now I want to add a new object to this file. At the moment I do:

RE: [R] How to add an object to an RData file ?

2004-07-28 Thread Thomas Lumley
On Wed, 28 Jul 2004, Liaw, Andy wrote: I guess it would be nice if save() has an `append' option... It would still have to read it in and out again, and then we would have all the issues about multiple objects with the same name. -thomas Andy From: Roger D. Peng I can't think

RE: [R] How to add an object to an RData file ?

2004-07-28 Thread Prof Brian Ripley
I don't think it is that simple. There are several save formats, some historical that no one wants to touch. So suppose we confined it to the current format. Then one would need a pass over the saved file to see what (e.g. namespaces) should be shared and to find the existing references, so