Re: [R] Interrupt R?

2010-07-12 Thread Prof Brian Ripley
On Sun, 11 Jul 2010, Spencer Graves wrote: Hi, Richard and Duncan: Thank you both very much. You provided different but workable solutions. 1. With Rgui 2.11.1 on Vista x64, the escape worked, but neither ctrl-c nor ctrl-C worked for me. Why did you expect them too?

Re: [R] Interrupt R?

2010-07-12 Thread Philippe Grosjean
Take a look also at ?tclTaskSchedule in package tcltk2. Best, Philippe Grosjean On 12/07/10 08:53, Prof Brian Ripley wrote: On Sun, 11 Jul 2010, Spencer Graves wrote: Hi, Richard and Duncan: Thank you both very much. You provided different but workable solutions. 1. With Rgui 2.11.1 on

[R] Interrupt R?

2010-07-11 Thread Spencer Graves
How can one interrupt the following gracefully: while(TRUE){ Sys.sleep(1) } In R2.11.1 under Emacs+ESS, some sequence of ctrl-g, ctrl-c eventually worked for me. Under Rgui 2.11.1, the only way I've found was to kill R. Suggestions on something more graceful?

Re: [R] Interrupt R?

2010-07-11 Thread RICHARD M. HEIBERGER
Use the timer in tcl. See this email from Phillipe Grosjean with details. https://stat.ethz.ch/pipermail/r-help/2009-July/203151.html Rich [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] Interrupt R?

2010-07-11 Thread Duncan Murdoch
On 11/07/2010 2:29 PM, Spencer Graves wrote: How can one interrupt the following gracefully: while(TRUE){ Sys.sleep(1) } In R2.11.1 under Emacs+ESS, some sequence of ctrl-g, ctrl-c eventually worked for me. Under Rgui 2.11.1, the only way I've found was to kill R.

Re: [R] Interrupt R?

2010-07-11 Thread Spencer Graves
Hi, Richard and Duncan: Thank you both very much. You provided different but workable solutions. 1. With Rgui 2.11.1 on Vista x64, the escape worked, but neither ctrl-c nor ctrl-C worked for me. 2. The TCLTK version works but seems to require either