Skip to content
Prev 327064 / 398502 Next

stopping functions with long execution times

See evalWithTimeout() of R.utils, e.g.

tryCatch({
  evalWithTimeout({
    slowFunction();
  }, timeout=7*24*3600);
}, TimeoutException=function(ex) {
  cat("Timeout. Skipping.\n");
})

help("evalWithTimeout") have more information and cross links.

/Henrik

On Thu, Jul 18, 2013 at 11:37 AM, ONKELINX, Thierry
<Thierry.ONKELINX at inbo.be> wrote: