Re: [R] saving and loading complex objects

2007-10-01 Thread Gabor Grothendieck
formulas have environments and since most model structures include the formula the entire environment of the formula will be pulled in. On 10/1/07, hadley wickham <[EMAIL PROTECTED]> wrote: > Why are you using eval and not: > > path <- paste( "C://Program Files//R//R-2.5.1//arima//",nn, sep="") >

Re: [R] saving and loading complex objects

2007-10-01 Thread hadley wickham
Why are you using eval and not: path <- paste( "C://Program Files//R//R-2.5.1//arima//",nn, sep="") save(x, file = path) ? It's possible that extra environments are getting saved. (Someone with more knowledge of eval might suggest a better solution, but that might be a good place to start) Had

[R] saving and loading complex objects

2007-10-01 Thread Lloyd Lubet
Dear Sir: When I try to save large and very complex recursive objects with some components containing models (such as the output from arima or lm ), the resulting file sizes increase by 4 meg per save. example directory: amex8 meg argentina 12 meg australia 16 m