Re: [Rd] wishlist --- menu entry [Rgui] misc --- stop current computation

From: Prof Brian Ripley <>
Date: Tue 19 Sep 2006 - 18:04:45 GMT

On Tue, 19 Sep 2006, Kjetil Halvorsen wrote:

> This is from R-2.4.0alpha on windows XP, downloaded from CRAN yesterday.
> I did
> update.packages(destdir= ..., ask=FALSE,checkBuilt=TRUE)
> which took quite a long time (as.expected). When the internet cafe
> had to close, I had to stop the downloading, but the menu item
> misc --- stop current computation only stopped the current download,
> and then R imeadiaetely continued whit the next in the waitin list, so I had
> to kill
> R. I would be nice if this could be corrected so it really
> stopped all the waiting computastion!

As it does what it says, it cannot be 'corrected' to do something else. I usually find hitting Ctrl-C (or ESC in Rgui) a few times breaks out here.

The issue is that update.packages (or more precisely download.packages) has a loop of try() constructs, and those are trapping interrupts. I don't think there is any way to distinguish those from other internal errors. In any case, it is a somewhat delicate question as to what you want: do you want pending on.exit() actions done, for example?

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ mailing list
Received on Wed Sep 20 04:07:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 19 Sep 2006 - 20:31:43 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.