s-news
[Top] [All Lists]

cleaning out .Data directory before I start

To: <s-news@wubios.wustl.edu>
Subject: cleaning out .Data directory before I start
From: "Leeds, Mark" <mleeds@mlp.com>
Date: Mon, 27 Oct 2003 00:16:02 -0500
Thread-index: AcOcSWoPeNU2eq+ZRD2w+EU4aoszQA==
Thread-topic: cleaning out .Data directory before I start
i am trying to have some code at the beginning of my Splus so that everything in the working
directory ( .Data directory ) is deleted before the program starts, except for one object called
"europesignal".
 
so, i wrote the following code which i thought would work ?
 
L<-ls()
M<-match(c("__Help","__Hhelp","__Meta","__Shelp", ".Last.value","europesignal"),L)
L<-L[-!is.na(M)]
remove(list=L)
 
for whatever reason, this doesn't work in that europesignal still gets deleted from the current directory.
 
does any know either why either the above deosn't work or any way of deleting all the objects in a working data directory
except for one of which the name is known, "europesignal". thanks.
 
I don't know if i have to worry about accidentally deleting those __Help, __Meta directories because
I don't think they should be deleted.
 
 
 
                                                                    thanks.
 
<Prev in Thread] Current Thread [Next in Thread>