Re: [Rd] saving objects with embedded environments

2007-07-02 Thread McGehee, Robert
puter's memory and swap space after repeated calls. Thanks, Robert -Original Message- From: Roger Peng [mailto:[EMAIL PROTECTED] Sent: Friday, June 29, 2007 7:44 PM To: McGehee, Robert Cc: R-devel Subject: Re: [Rd] saving objects with embedded environments I believe this is intentiona

Re: [Rd] saving objects with embedded environments

2007-06-29 Thread Roger Peng
I believe this is intentional. See ?serialize. When lm() is called in a function, the environment is saved in case the resulting fitted model object needs to be updated, for example, with update(). if you don't want the linear model object, you might try just saving the relevant objects to a sep

[Rd] saving objects with embedded environments

2007-06-28 Thread McGehee, Robert
Hello, I have been running linear regressions on large data sets. As 'lm' saves a great deal of extraneous (for me) data including the residuals, fitted.values, model frame, etc., I generally set these to NULL within the object before saving off the model to a file. In the below example, however,