[R] Interrupt R?
Duncan Murdoch
murdoch.duncan at gmail.com
Sun Jul 11 21:02:55 CEST 2010
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.
>
>
> Suggestions on something more graceful?
>
This is an Emacs+ESS bug. In the Windows GUI or using Rterm, the
standard methods (ESC or Ctrl-C resp.) work fine.
Duncan Murdoch
>
> Beyond this, what would you suggest to update a real-time report
> when new data arrives in a certain directory? A generalization of the
> above works, but I'd like something more graceful.
>
>
> Thanks,
> Spencer Graves
>
>
> sessionInfo()
> R version 2.11.1 (2010-05-31)
> i386-pc-mingw32
>
> locale:
> [1] LC_COLLATE=English_United States.1252
> [2] LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] SIM_0.5-0 RCurl_1.4-2 bitops_1.0-4.1 R2HTML_2.1 oce_0.1-80
>
>
More information about the R-help
mailing list