Federico Calboli
2005-Mar-08 20:51 UTC
[R] removing message: [Previously saved workspace restored]
Dear All, I saved by mistake the environment I was working in after typing q(), and now I get the annoying message: [Previously saved workspace restored] I have already deleted all the objects in the environment, saving it as an empty environment, so it's just a matter of nitpicking I suppose. The message does not appear if I start R from any other place in the directory tree. I am reading ?Startup and related docs, but I am utterly failing to understand how to remove [Previously saved workspace restored] when I call R from the offending dir... I am using R on Debian Sarge x86 Cheers, Federico Calboli -- Federico C. F. Calboli Department of Epidemiology and Public Health Imperial College, St Mary's Campus Norfolk Place, London W2 1PG Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193 f.calboli [.a.t] imperial.ac.uk f.calboli [.a.t] gmail.com
Roger D. Peng
2005-Mar-08 21:00 UTC
[R] removing message: [Previously saved workspace restored]
R saves the workspace in a file called '.RData'. Simply remove this file from your working directory. Or if you startup R and get the message, try unlink(".RData") -roger Federico Calboli wrote:> Dear All, > > I saved by mistake the environment I was working in after typing q(), > and now I get the annoying message: > > [Previously saved workspace restored] > > I have already deleted all the objects in the environment, saving it as > an empty environment, so it's just a matter of nitpicking I suppose. The > message does not appear if I start R from any other place in the > directory tree. > > I am reading ?Startup and related docs, but I am utterly failing to > understand how to remove [Previously saved workspace restored] when I > call R from the offending dir... > > I am using R on Debian Sarge x86 > > Cheers, > > Federico Calboli-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/
Federico Calboli
2005-Mar-08 21:01 UTC
[R] removing message: [Previously saved workspace restored]
On Tue, 2005-03-08 at 15:57 -0500, Wiener, Matthew wrote:> Remove the (now empty, because you deleted all objects) file ".RData" from > the directory. > > Hope this helps,Thanks, it did fix the problem. Cheers, Federico Calboli -- Federico C. F. Calboli Department of Epidemiology and Public Health Imperial College, St Mary's Campus Norfolk Place, London W2 1PG Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193 f.calboli [.a.t] imperial.ac.uk f.calboli [.a.t] gmail.com
Liaw, Andy
2005-Mar-08 21:01 UTC
[R] removing message: [Previously saved workspace restored]
Either remove .RData in the directory, or start R with --no-restore option. Andy> From: Federico Calboli > > Dear All, > > I saved by mistake the environment I was working in after typing q(), > and now I get the annoying message: > > [Previously saved workspace restored] > > I have already deleted all the objects in the environment, > saving it as > an empty environment, so it's just a matter of nitpicking I > suppose. The > message does not appear if I start R from any other place in the > directory tree. > > I am reading ?Startup and related docs, but I am utterly failing to > understand how to remove [Previously saved workspace restored] when I > call R from the offending dir... > > I am using R on Debian Sarge x86 > > Cheers, > > Federico Calboli > -- > Federico C. F. Calboli > Department of Epidemiology and Public Health > Imperial College, St Mary's Campus > Norfolk Place, London W2 1PG > > Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193 > > f.calboli [.a.t] imperial.ac.uk > f.calboli [.a.t] gmail.com > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > >
Achim Zeileis
2005-Mar-08 21:03 UTC
[R] removing message: [Previously saved workspace restored]
On Tue, 08 Mar 2005 20:51:44 +0000 Federico Calboli wrote:> Dear All, > > I saved by mistake the environment I was working in after typing q(), > and now I get the annoying message: > > [Previously saved workspace restored] > > I have already deleted all the objects in the environment, saving it > as an empty environment, so it's just a matter of nitpicking I > suppose. The message does not appear if I start R from any other place > in the directory tree.The saved workspace is stored in the .RData in that particular directory. It is loaded when you start R in that directory. If you remove the file, it cannot be loaded anymore. Z> I am reading ?Startup and related docs, but I am utterly failing to > understand how to remove [Previously saved workspace restored] when I > call R from the offending dir... > > I am using R on Debian Sarge x86 > > Cheers, > > Federico Calboli > -- > Federico C. F. Calboli > Department of Epidemiology and Public Health > Imperial College, St Mary's Campus > Norfolk Place, London W2 1PG > > Tel +44 (0)20 7594 1602 Fax (+44) 020 7594 3193 > > f.calboli [.a.t] imperial.ac.uk > f.calboli [.a.t] gmail.com > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >
Jan T. Kim
2005-Mar-08 21:59 UTC
[R] removing message: [Previously saved workspace restored]
On Tue, Mar 08, 2005 at 08:51:44PM +0000, Federico Calboli wrote:> I saved by mistake the environment I was working in after typing q(), > and now I get the annoying message: > > [Previously saved workspace restored] > > I have already deleted all the objects in the environment, saving it as > an empty environment, so it's just a matter of nitpicking I suppose. The > message does not appear if I start R from any other place in the > directory tree. > > I am reading ?Startup and related docs, but I am utterly failing to > understand how to remove [Previously saved workspace restored] when I > call R from the offending dir... > > I am using R on Debian Sarge x86There is a file called .Rdata, containing the saved workspace, in the "offending directory". Following Unix convention, the file is not normally displayed by ls and other programs because its name begins with a dot. See "Data permanency and removing objects" in the R-intro. If you don't want the saved stuff anymore, simply delete that file. Best regards, Jan -- +- Jan T. Kim -------------------------------------------------------+ | *NEW* email: jtk at cmp.uea.ac.uk | | *NEW* WWW: http://www.cmp.uea.ac.uk/people/jtk | *-----=< hierarchical systems are for files, not for humans >=-----*