[R] Interrupt calc/buffer output of R under Windows

Philippe Grosjean phgrosje at ulb.ac.be
Sun Oct 20 10:44:06 CEST 2002


Hi all,

I want maximum control of R, including calculation / buffer output
interruption. With Rgui, pressing ESC interrupt both calculation and buffer
output. However, with Rterm, ctrl-c works only in calculation, but does not
interrupt buffer output:

with:

i <- 1
while (i > 0) i <- i + 1

which runs an infinite loop, pressing ctrl-c interrupt it. OK. But:

rnorm(1000000)

is not interrupted before the 1,000,000 numbers are buffered to the console.
I only can pausi it temporarily by pression break, but I do not come back to
the prompt and buffer output is continued when I "unpause" it.

Any hint on how to stop buffer output in RTerm?

By the way, is it something different in infer mode (Rterm --ess)? What are
the major differences between normal and infer mode?

Thank you.
Best,

Philippe Grosjean

...........]<(({°<...............<°}))><...............................
( ( ( ( (
 ) ) ) ) )      Philippe Grosjean
( ( ( ( (
 ) ) ) ) )      IFREMER Nantes - DEL/AO
( ( ( ( (       rue de l'Ile d'Yeu, BP 21105, 44311 Nantes Cedex 3
 ) ) ) ) )      tel: (33) 02.40.37.42.29, fax: (33) 02.40.37.42.41
( ( ( ( (
 ) ) ) ) )      SciViews project coordinator (http://www.sciviews.org)
( ( ( ( (       e-mail: phgrosjean at sciviews.org
 ) ) ) ) )
( ( ( ( (       "I'm 100% confident that p is between 0 and 1"
 ) ) ) ) )                                L. Gonick & W. Smith (1993)
.......................................................................


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list