Re: [Rd] Catching Ctrl-C/Esc at R-level

From: Henrik Bengtsson <hb_at_stat.berkeley.edu>
Date: Tue, 29 Jun 2010 18:04:20 +0200

Yes, you catch user interrupts (Ctrl-C) with tryCatch(..., interrupt=function(cond) { ...}), cf.

http://www1.maths.lth.se/help/R/ExceptionHandlingInR/

/Henrik

On Tue, Jun 29, 2010 at 5:46 PM, Hadley Wickham <hadley_at_rice.edu> wrote:
> Hi all,
>
> Is it possible to catch when the user presses Ctrl+C/Esc and deal with
> it at the R level?
>
> Hadley
>
> --
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 29 Jun 2010 - 16:11:22 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jun 2010 - 21:21:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive