[Rd] Execute expr with a timeout?

Philippe Grosjean phgrosjean at sciviews.org
Mon Jun 16 10:04:28 CEST 2008


Hello,

Does someone know how to execute an expression in R, limiting the time 
to evaluate it and raising an exception if it takes too long to run? 
Something like:

 > with.timeout(expr, timeout = 10)

which stops the evaluation of 'expr' if it is not done after 10 sec?
Best,

Philippe Grosjean



More information about the R-devel mailing list