From hb at stat.berkeley.edu  Tue Sep  4 19:40:31 2007
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Tue, 4 Sep 2007 10:40:31 -0700
Subject: [Rd] User interrupts while plotting
Message-ID: <59d7961d0709041040k73949b24g29ec72a3b9f02a1c@mail.gmail.com>

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



[Rd] User interrupts while plotting
Henrik Bengtsson