[ESS] R is restoring "previously saved workspace" without me asking it to

Mark Kimpel mwkimpel at gmail.com
Wed Jun 18 04:34:14 CEST 2008


Thanks for the elegant suggestions. Since I am getting such good
advice, let me ask how to clean up my commonly used R directories on a
regular basis. I have the following in my .Rprofile to get rid of
other pesky files that seem to creep into my directories. I realize
that occasionally these can be useful, such as to restore a crashed
Emacs session, but most of the time they just annoy the heck out of me
when I am looking for something. I'm betting there are some more good
suggestions out there, don't let me down!  Mark

setwd("~/myRdirectory")
system("find ./ -name #*# -print | xargs rm")
system("find ./ -name .#*# -print | xargs rm")
system("find ./ -name .#* -print | xargs rm")
system("find ./ -name '.Rhistory' -print | xargs rm")
system("find ./ -name '.*tmp' -print | xargs rm")
system("find ./ -name *~ -print | xargs rm")
system("find ./ -name .*~ -print | xargs rm")


Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine

15032 Hunter Court, Westfield, IN 46074

(317) 490-5129 Work, & Mobile & VoiceMail
(317) 663-0513 Home (no voice mail please)




More information about the ESS-help mailing list