Re: [R] How to delete the previously saved workspace restored

From: jim holtman <jholtman_at_gmail.com>
Date: Mon, 31 May 2010 10:12:25 -0400

The easiest way (I use WIndows) is to start each session without loading the previous workspace. I explicitly save what I need and then explicitly restore it. In most cases, I always reconstruct the data I need.

I use the '--no-restore --no-save' options.

On Mon, May 31, 2010 at 10:04 AM, Joris Meys <jorismeys_at_gmail.com> wrote:
> If you start R, type :
>
> unlink(".RData")
>
> This deletes the workspace file.
> Cheers
> Joris
>
> On Mon, May 31, 2010 at 11:10 AM, Yanwei Tan <Tan_at_nbio.uni-heidelberg.de>wrote:
>
>> Dear all,
>>
>> I am a new user of R, here I have a question about remove the previous
>> restored workspace.  I saved the workspace last time, but R always
>> automatically load the workspace when I open it.  I try to remove the object
>> and then close R without saving. But next time when I open R, it always load
>> the previous workspace. I want to delete the .RData in the directory, but I
>> have no clue where is the .RData directory.
>>
>> The message is "Workspace restored from /Users/wei/.RData"
>>
>> How could I avoid from this directory? because there is a dot before, I do
>> not know where I can find this file.
>>
>> Also I already try this command : rm(list=ls())   But R still load the
>> previous workspace.
>>
>> With many thanks for any advice!!
>>
>> Best,
>> Wei
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> Joris Meys
> Statistical Consultant
>
> Ghent University
> Faculty of Bioscience Engineering
> Department of Applied mathematics, biometrics and process control
>
> Coupure Links 653
> B-9000 Gent
>
> tel : +32 9 264 59 87
> Joris.Meys_at_Ugent.be
> -------------------------------
> Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 31 May 2010 - 14:14:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 31 May 2010 - 14:50:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive