REngine icon indicating copy to clipboard operation
REngine copied to clipboard

Stack trace in RTalk.request(...)

Open Squareys opened this issue 9 years ago • 0 comments

Hi @s-u !

Would it be possible to have RTalk.request(...) throw an exception instead of printing a stack trace when an exception occurs?

I have the following use case: Due to potentially long execution times of R expressions, I would like to be able to terminate their execution. I am currently doing this by closing the RConnection and then terminating the Rserve process (which only runs locally). This causes the socket input stream to throw SocketException: Socket closed while blocking on is.read(), which results in the stack trace.

Thank you in advance! Greetings, Jonathan

Squareys avatar Oct 28 '15 15:10 Squareys