[R] interrupting R

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jan 2 14:56:34 CET 2009


On Fri, 2 Jan 2009, Markus Loecher wrote:

> Dear fellow R users,
> is there a generic way to gracefully interrupt an R function without
> terminating the entire session ? I am mainly interested in this answer for
> Linux and MacOS.
> I found neither Esc nor Ctrl-C to work; it seems that R does not check for
> signals periodically?

Well, Ctrl-C works for me.  Rather than check for signals, R installs a 
signal handler and gets the OS to do the work.

On Mac OS it is unclear if you mean R or R.app.  R.app has a Stop sign 
icon, amongst other ways.

> Also, an entirely unrelated question: I have been looking unsuccessfully for
> the R sources for the examples given in Simon Wood's book on Generalized
> Additive Models. I had hoped they would be part of the mgcv package but they
> are not.
> Has anyone had any luck with this ?

Why not ask him directly?

> Thanks,
> Markus
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
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