From murray at stokely.org  Wed Apr 13 00:58:32 2011
From: murray at stokely.org (Murray Stokely)
Date: Tue, 12 Apr 2011 15:58:32 -0700
Subject: [Rd] Signal handling / alarm timeouts
Message-ID: <BANLkTim5yAHWgj9N4de19TOn1=oe0NkujA@mail.gmail.com>

What are the ramifications of setting up user signal handling to allow
the use of e.g. alarm(2) to send a SIGALRM to the R process at some
number of seconds in the future to e.g. interrupt a routine that is
taking too long to complete.

I can't find any R language support for this (e.g. a timeout argument
to tryCatch() would be ideal), so am wondering what kinds of problems
are to be expected if I do this with native C code in a package.

Are there other ways to accomplish timeouts for blocks of R code like this?

               - Murray



[Rd] Signal handling / alarm timeouts
Murray Stokely