[R] Stopping the process after a certain time

Thomas Lumley tlumley at u.washington.edu
Mon May 24 17:42:51 CEST 2004


On Mon, 24 May 2004, Andrew Robinson wrote:

> Greetings R-community,
>
> I'm running simulations within R that I wrote in C.  The simulations
> require fitting that occasionally fails to finish.  I was wondering if
> there is any kind of tool for process control in R, such that after e.g.
> 15 minutes I could kill the process, record the state for post-hoc
> analysis, and move to the next simulation?
>
> I'm running FreeBSD and could almost surely do something in Perl but I'd
> rather stay inside R if possible.
>

As one component of this, if you send an R process SIGUSR1 it will quit
and save .RData (approximately the equivalent of CTRL-C, q("yes")).


	-thomas




More information about the R-help mailing list