Skip to content
Prev 327069 / 398502 Next

stopping functions with long execution times

On 18/07/2013 10:37, ONKELINX, Thierry wrote:
Learn how to use the R documentation.  ??limit gave me some useful hits, 
including to how I would do this.

However, as ?setTimeLimit points out, if this is running in C code, it 
cannot be interrupted from the R interpreter.  In that case, use 
separate processes and your OS facilities (man ulimit, for example).
And

'Asking on R-help is no substitute for doing your own homework'