[R] A small question

Aboubakar Maitournam amaitour at pasteur.fr
Mon Dec 24 10:34:33 CET 2001


Indrajit SenGupta wrote:

>  Dear R- users,I have a small question on R. The other day I was using
> R when I decided to quit and when I was prompted with the question
> whether I would like to save the workspace image, I accidently pressed
> yes and after that every time start R the previous work space gets
> loaded. How do I avoid this?Thanks in
> advance,______________________Indrajit SenGuptaDepartment Of
> StatisticsSt. Xavier's CollegeCalcutta
> Universityindra_calisto at yahoo.comindrajit_sg@rediffmail.com

I have had that kind of problem and among a lot responses I have
received, here are solutions :

Subject:
           Re: [R] R workspace
      Date:
           Sat, 15 Dec 2001 16:36:14 -0500
      From:
           Duncan Murdoch <dmurdoch at pair.com>
        To:
           Aboubakar Maitournam <amaitour at pasteur.fr>,
r-help at stat.math.ethz.ch
 References:
           1




On Thu, 13 Dec 2001 11:42:40 +0100, you wrote:

>
>Dear all,
>
>I m using  R version 1.3.1 under linux (Red Hat).
>When i left my session, naturally i have the question
>Save workspace image? [y/n/c]?
>I said n because I want to remove all the contain of my workspace.
>Then I left R with q().

This means it won't save the current workspace, but if you already
have a saved one, it will be left there.

>
>When I open new session I have the R welcome message and
>[previously save workspace restored]. By typing ls() I find
>what I have normally removed and I want to remove.
>I have try rm(" "). But every time I open R session I find the objects.

There are several ways to get rid of the old saved workspace, for
example:

 unlink(".RData")
 q("no")

or

 rm(list=ls())
 q("yes")

Duncan Murdoch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20011224/2e6dd9e9/attachment.html


More information about the R-help mailing list