Hello R-help I use R program on linux. and when I would like to quick R, then I type q() after than has question "Save workspace image? [y/n/c]:" when I ans "y" , why not to ask about name of file. and when I would like to open last file , how can I do? thanks for your help. and sorry if my English not so good. I'm Thai people and I know English a little. Mathinee
If you want to save the workspace to a file, type: save.image("filename") To load the file, type: load("filename") The save that you do when you exit R saves by default to a (typically) hidden file called ".Rdata". If you start R in a directory with a ".Rdata" file in it, R will load that file automatically. Sean ----- Original Message ----- From: <mathinee at gaccl.com> To: <R-help at stat.math.ethz.ch> Sent: Monday, May 03, 2004 10:32 PM Subject: [R] I have some problem about "save and open"> Hello R-help > > I use R program on linux. > and when I would like to quick R, then I type q() > after than has question "Save workspace image? [y/n/c]:" > when I ans "y" , why not to ask about name of file. > and when I would like to open last file , how can I do? > thanks for your help. > and sorry if my English not so good. I'm Thai people and I know > English a little. > Mathinee > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide!http://www.R-project.org/posting-guide.html>
mathinee at gaccl.com wrote:> Hello R-help > > I use R program on linux. > and when I would like to quick R, then I type q() > after than has question "Save workspace image? [y/n/c]:" > when I ans "y" , why not to ask about name of file.It saves the file ".RData" in the current working directory (getwd() tells you which it is). Use save.image() if you want to write to an explicitly given filename.> and when I would like to open last file , how can I do?Either start R in the working directory you have used the last time (it load ".RData" from the current), or use load() to explicitly load a workspace image. Please read the manuals and the help ?Startup Uwe Ligges> thanks for your help. > and sorry if my English not so good. I'm Thai people and I know > English a little. > Mathinee > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html