[R] Time differences (as.difftime?) issue

2008-05-14 Thread Lukas Rode
Dear all, I have a vector generated using the function strptime: > my.dt [1] "2004-04-19 08:35:00 W. Europe Daylight Time" "2004-04-19 09:35:00 W. Europe Daylight Time" "2004-04-19 11:35:00 W. Europe Daylight Time" [4] "2004-04-19 13:35:00 W. Europe Daylight Time" "2004-04-20 07:50:00 W. Europe D

Re: [R] Stopping a function execution automatically after a given time

2008-04-02 Thread Lukas Rode
PROTECTED]> wrote: > Lukas Rode a écrit : > > > Nowever, with regard to #2, I am lost. I would like to set a maximum > time > > limit (say, 1 minute) and if my procedure is still running then, I would > > like to move on to the next model. > > > begin_time = as.diff

[R] Stopping a function execution automatically after a given time

2008-04-02 Thread Lukas Rode
Dear all, I often need to execute functions repeatedly (thousands or more times). While doing so, I encounter two types of problems: 1.) In some models, the estimation process fails due to convergence problems 2.) Some models will run forever. My solution to #1 is to use tryCatch around the func