[R-SIG-Mac] ESC to stop locator() before hitting the specified number of points

Denis Chabot chabotd at globetrotter.net
Tue Jun 3 03:02:55 CEST 2008


I thought (and the help confirms this belief) that ESC was one way to  
get out of a locator call before reaching the number of points  
specified in the call. I cannot get this to work on my MacBook Pro  
with 10.5.3. Here is the session info:

 > sessionInfo()
R version 2.7.0 Patched (2008-05-07 r45642)


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

 > plot(1:10)
 > locator(n=3)

No way to get out of locator without clicking 3 times on the plot.

Am I doing something wrong (I tried ESC, shift-ESC, command-ESC,  
control-ESC, option(Alt)-ESC, to no avail (except that one of them  
starts Front Row!). Are you able to ESC from locator?


Denis Chabot

More information about the R-SIG-Mac mailing list