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

Erik Iverson iverson at biostat.wisc.edu
Tue Jun 17 19:16:34 CEST 2008


I have the following in my .emacs.

(setq inferior-R-args "--no-save --no-restore --quiet")



Mark Kimpel wrote:
> That is what I "always" do. Apparently, I slipped. Since I "never" do
> this, I have put the following in my .Rprofile (Linux). Of course, you
> should only use this if you NEVER want to INTENTIONALLY save your
> workspace.
> 
> setwd("~/myRfiles")
> system("find ./ -name '.RData' -print | xargs rm")
> 
> Mark
> 
> On Tue, Jun 17, 2008 at 9:43 AM, François Michonneau
> <francois.michonneau at gmail.com> wrote:
>> Hi
>>
>> If you don't want a .Rdata file to be created just close your R session by
>> typing q("no").
>> Hope this helps
>> François
>>
>> Mark Kimpel wrote:
>>> Thanks, I thought it was something simple like that. I have no idea
>>> how/when that .Rdata file was created, but I'll remove it. Mark
>>>
>>> On Mon, Jun 16, 2008 at 5:23 PM, Douglas Bates <bates at stat.wisc.edu>
>>> wrote:
>>>> On Mon, Jun 16, 2008 at 4:13 PM, Mark Kimpel <mwkimpel at gmail.com> wrote:
>>>>> When initiating an instance of R from within ESS-emacs (most recent
>>>>> versions) a new behavior has appeared -- R begins with "[Previously
>>>>> saved workspace restored]". I haven't seen this before nor do I know
>>>>> how to turn it off. I never save R workspaces but frequently kill R by
>>>>> closing an emacs window.
>>>>> This is most likely something I inadvertently initiated but I'll be
>>>>> darned if I know how. Any thoughts on turning it off?
>>>> This behavior is not ESS-specific.  If there is a saved worksheet in
>>>> the directory where you start R and if you do not use the flag
>>>> --no-restore when starting R, it will restore the saved worksheet.
>>>> The simple fix is to remove the saved worksheet file, which is called
>>>> .RData under Linux.
>>>>
>>>>
>>>>> Mark
>>>>>
>>>>> --
>>>>> 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)
>>>>>
>>>>> ______________________________________________
>>>>> ESS-help at stat.math.ethz.ch mailing list
>>>>> https://stat.ethz.ch/mailman/listinfo/ess-help
>>>>>
>>>
>>>
> 
> 
>




More information about the ESS-help mailing list