From phgrosjean at sciviews.org  Mon Jun 16 10:45:10 2008
From: phgrosjean at sciviews.org (Philippe Grosjean)
Date: Mon, 16 Jun 2008 10:45:10 +0200
Subject: [Rd] Execute expr with a timeout?
In-Reply-To: <alpine.LFD.1.10.0806160928550.14927@gannet.stats.ox.ac.uk>
References: <48561E8C.7020806@sciviews.org>
	<alpine.LFD.1.10.0806160928550.14927@gannet.stats.ox.ac.uk>
Message-ID: <48562816.6030007@sciviews.org>

Prof Brian Ripley wrote:
> See (R-devel)
> 
>     o    Experimental setTimeLimit() function to set limits on the CPU
>     and/or elapsed time for each top-level computation.

Oh yes! Many thanks.

> Note that this is unfinished, and the interface may well change before 
> release.

OK, I can wait.
Have a nice day,

Philippe

> On Mon, 16 Jun 2008, Philippe Grosjean wrote:
> 
>> 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
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>



[Rd] Execute expr with a timeout?
Philippe Grosjean