[R] Problem quitting
peter dalgaard
pdalgd at gmail.com
Thu Apr 4 17:54:10 CEST 2013
On Apr 4, 2013, at 13:33 , Prof Brian Ripley wrote:
> On 04/04/2013 12:17, peter dalgaard wrote:
>>
>> On Apr 3, 2013, at 23:58 , Julian Wells wrote:
>>
>>> Can someone explain why all of a sudden I can't quit?
>>
>> Almost certainly because you have a .Last function that fails. Either get rid of it, or try q("n", runLast=FALSE).
>
> I don't think so. This seems to be R.app on a Mac, and that has a custom q() function. Now q("n") is never valid, but the R.app version does not tell you so.
>
I never noticed that... However, q("no") should work. I also forgot that q() doesn't use match.arg() (did it ever?).
> As it says, it is a permission issue when trying to save.
Yes, so changing working directory to somewhere non-writable might cause it. That's the more likely scenario, I agree.
(I'm not completely ruling out .Last(). A colleague of mine uses a .Last() to save what goes on in class to his USB stick, but if he accidentally saves his workspace to the hard drive, the unsuspecting next teacher using R on that machine may find himself unable to quit.)
>
>> -pd
>>
>>
>>>
>>>> q("n") returns
>>>
>>> Error in gzfile(file, "wb") : cannot open the connection
>>> In addition: Warning message:
>>> In gzfile(file, "wb") :
>>> cannot open compressed file '.RDataTmp', probable reason 'Permission denied'
>>>
>>> I'm running
>>>
>>> R 2.15.3 GUI 1.53 Leopard build 64-bit
>>>
>>> on a MacBook Pro
>>>
>>> Processor 2.3 GHz Intel Core i7
>>>
>>> Software Mac OS X Lion 10.7.5 (11G63)
>>>
>>>
>>> Julian Wells
>
>
>
> --
> Brian D. Ripley, ripley at stats.ox.ac.uk
> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
> University of Oxford, Tel: +44 1865 272861 (self)
> 1 South Parks Road, +44 1865 272866 (PA)
> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> ______________________________________________
> 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.
--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com
More information about the R-help
mailing list