[R] stopping functions with long execution times

2013-07-18 Thread ONKELINX, Thierry
Dear all, I am running the same model on several datasets, each dataset is a different species. The problem is that for some datasets the model is not converging. Currently I have an INLA model running for 35 days and still no results. The process still uses near 100% of the CPU and less than

Re: [R] stopping functions with long execution times

2013-07-18 Thread Henrik Bengtsson
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,

Re: [R] stopping functions with long execution times

2013-07-18 Thread ONKELINX, Thierry
...@gmail.com] Namens Henrik Bengtsson Verzonden: donderdag 18 juli 2013 12:43 Aan: ONKELINX, Thierry CC: r-help@r-project.org Onderwerp: Re: [R] stopping functions with long execution times See evalWithTimeout() of R.utils, e.g. tryCatch({ evalWithTimeout({ slowFunction(); }, timeout=7*24*3600

Re: [R] stopping functions with long execution times

2013-07-18 Thread Prof Brian Ripley
On 18/07/2013 10:37, ONKELINX, Thierry wrote: Dear all, I am running the same model on several datasets, each dataset is a different species. The problem is that for some datasets the model is not converging. Currently I have an INLA model running for 35 days and still no results. The