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/
2 messages · Hadley Wickham, Henrik Bengtsson
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/
Yes, you catch user interrupts (Ctrl-C) with tryCatch(...,
interrupt=function(cond) { ...}), cf.
http://www1.maths.lth.se/help/R/ExceptionHandlingInR/
/Henrik
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