[R] How to abort function execution after x-seconds

Immanuel mane.desk at googlemail.com
Sat Aug 20 22:52:31 CEST 2011


Hello all,

I'm running a  parameter grid optimization ( ksvm, kernlab package) and 
the optimizer
seems not to converge for certain parameters and stays in a infinity loop.
Would it be possible to abort the execution after x-seconds and continue
with the next parameter set? Which R function do need to use to 
accomplish this?

I had a look at, try() etc. but they didn't seem so fit my needs.
I would appreciate any suggestions..

best regards



More information about the R-help mailing list