On Mon, Aug 22, 2011 at 12:39 PM, Immanuel <mane.desk at googlemail.com>
wrote:> Hello all,
>
> I posted a questions on how to terminate a function call that does not
> return after a certain time ( I can not modify the function code) some
> time ago.
> Since I didn't find a solution I just came up with the idea to run the
> functions call in a separate thread who I could terminate a will.
>
> Would this be possible? Any pointers in the right direction?
Try package multicore. You can run child processes using parallel()
and kill() the child process when it runs out of time. Not sure how
easy or hard it is because I have never kill'ed a process using that
function, but it should work.
HTH,
Peter