[Rd] User interrupts while plotting
Henrik Bengtsson
hb at stat.berkeley.edu
Tue Sep 4 19:40:31 CEST 2007
Hi,
not often, but still once in a while, I call plot functions (by
mistake) with ridiculous large number of data points. In such cases,
the only option you've got is to wait for it to finish, or kill R. At
least on WinXP, it is not possible to interrupt the plotting. Dummy
example:
s <- 100e3;
x <- matrix(rnorm(s*s), nrow=s, ncol=s)
image(x)
Would it be possible to add checks for user interrupts within the
plotting functions, or is this part of code "outside" R, e.g.
# For every 10,000th iteration/data points, check for user interrupts?
if(ii % 10000 == 0)
R_CheckUserInterrupt();
Best
Henrik
More information about the R-devel
mailing list