[R] How to interrupt a loop by pressing a key?

mel mel at altk.com
Wed Jan 16 10:54:01 CET 2008


Bruno Jesus a écrit :
> Does anyone know a way of interrupting a loop 
> by pressing a key (besides ctrl-c)?

No hit key solution sorry, but may help :

if (file.exists('zefile')) stop()

allows to stop given zefile is created




More information about the R-help mailing list