[R-SIG-Mac] ESC key and STOP button not working in R 2.14.1
bibiko at eva.mpg.de
Mon Jan 9 14:17:30 CET 2012
On 09.01.2012, at 12:45, Ken Knoblauch wrote:
> I find that the ESC key for aborting a line of code or stopping
> execution and also the STOP button are not working in R 2.14.1.
> I thought that this might be a Lion related issue as I updated
> both my OS and R version at the same time but I see the problem
> on an older machine running Snow Leopard, too. I can't give
> an example. Just write a line of code and hit escape before
> you hit return. This used to abort the command. Was this a
> bug earlier that is fixed, or is it a feature that can be ...
yes - the ESC behaviour was slightly changed/improved.
Pressing ESC while R is EXECUTING R code including statements like "system('foo', wait=T) will try to interrupt the R code AND kill 'foo' resp.
If R isn't executing something ESC invokes completion since this is the standard Mac app behaviour.
You wrote: "Just write a line of code and hit escape before you hit return. This used to abort the command."
Well, it did not abort the command since the command wasn't executed yet, it only cleared the current command line buffer which differs from the actual intention of pressing ESC => 'Interrupt current R computation' I think.
To get the 'old' behaviour you can press ⇧⌘⇠ (standard short-cut to select from cursor position to start of line) if your cursor is at the end of the current line to select what you've already written and start typing again.
More information about the R-SIG-Mac