Re: [R] Query on save.image()

2010-10-14 Thread Megh Dal
again the same against "envir". By putting so, what I am going to tell R? Thanks, --- On Thu, 10/14/10, Joshua Wiley wrote: > From: Joshua Wiley > Subject: Re: [R] Query on save.image() > To: "Megh Dal" > Cc: r-h...@stat.math.ethz.ch > Date: Thursday, O

Re: [R] Query on save.image()

2010-10-14 Thread Joshua Wiley
;envir". By putting so, what I am going to tell R? > > Thanks, > > --- On Thu, 10/14/10, Joshua Wiley wrote: > >> From: Joshua Wiley >> Subject: Re: [R] Query on save.image() >> To: "Megh Dal" >> Cc: r-h...@stat.math.ethz.ch >> Date:

Re: [R] Query on save.image()

2010-10-14 Thread Hadley Wickham
On Thu, Oct 14, 2010 at 11:56 AM, Joshua Wiley wrote: > Hi, > > I do not believe you can use the save.image() function in this case. > save.image() is a wrapper for save() with defaults for the global > environment (your workspace).  Try this instead, I believe it does > what you are after: > > my

Re: [R] Query on save.image()

2010-10-14 Thread Joshua Wiley
Hi, I do not believe you can use the save.image() function in this case. save.image() is a wrapper for save() with defaults for the global environment (your workspace). Try this instead, I believe it does what you are after: myfun <- function(x) { y <- 5 * x + x^2 save(list = ls(envir = environm