[R] stopping a function
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Feb 23 19:05:28 CET 2005
On Wed, 23 Feb 2005, Brian S Cade wrote:
> I've looked for this information in all the R help sources I could find and
> found nothing. Is it possible to use some function key to stop the
> execution of some R command without ending the R session (Windows, R 1.91)?
R 1.91 is not expected until 2050, if ever.
> I've several times started functions that for various reasons are not
> executing properly and it would be nice to stop them without killing the R
> session. I've been using taskmgr to end the R session but I then lose all
> objects created during the session.
It's in the README, and for RGui, on the menus!
Esc in RGui, Ctrl-c in Rterm.
Not all computations are interruptible (most compiled code is not), but if
they are, these will do it.
--
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
More information about the R-help
mailing list