Re: [R] Auto-killing processes spawned by foreach::doMC

2010-11-09 Thread Steve Lianoglou
Hi Henrik, Firstly, thanks for keeping an eye out and sharing. On Tue, Nov 9, 2010 at 12:59 AM, Henrik Bengtsson wrote: > I just stumbled into the 'fork' package (GPL-2).  It allows you do > send signals from within R.  Unfortunately it is not available on > Windows, but it is definitely a start

Re: [R] Auto-killing processes spawned by foreach::doMC

2010-11-08 Thread Henrik Bengtsson
I just stumbled into the 'fork' package (GPL-2). It allows you do send signals from within R. Unfortunately it is not available on Windows, but it is definitely a start. Here is an example how an R session can send an interrupt signal (SIGINT) to itself: library("fork"); # Get the process ID o

Re: [R] Auto-killing processes spawned by foreach::doMC

2010-11-03 Thread Henrik Bengtsson
Hi, I am also interest in ways to in R send signals to other R sessions/processes, ideally in (what appears to be) an OS-independent way. For what it is worth, related question have been asked before, cf. R-devel thread 'Sending signals to current R process from R running under MS Windows (c.f. E

[R] Auto-killing processes spawned by foreach::doMC

2010-11-03 Thread Steve Lianoglou
Hi all, Sometimes I'll find myself "ctrl-c"-ing like a madman to kill some code that's parallelized via foreach/doMC when I realized that I just set my cpu off to do something boneheaded, and it will keep doing that thing for a while. In these situations, since I interrupted its normal execution,