Rserve-Ruby-client icon indicating copy to clipboard operation
Rserve-Ruby-client copied to clipboard

Return error messages from R?

Open NielsKSchjoedt opened this issue 11 years ago • 3 comments

Is it possible to get the "real" error message from R? No matter what kind of error that occurs, I get the same exception from Rserve. Here is an example:

con.eval('summary(some_undefined_object)')
#=> Rserve::Connection::EvalError: eval failed: Packet[cmd=2130771970,len=<nil>, con='<nil>', status=error:'Unknown variable/method'(127)]

Where the actual error message when evaluated in R is:

> summary(some_unknown_var)
Error in summary(some_unknown_var) : object 'some_unknown_var' not found

NielsKSchjoedt avatar Nov 14 '13 13:11 NielsKSchjoedt

I would also love to see the actual error message attached to the Rserve response.

phedinkus avatar Mar 16 '15 21:03 phedinkus

+1

Kadrian avatar Nov 24 '15 16:11 Kadrian

+1

Adt-HamzahJamal avatar Jun 19 '20 10:06 Adt-HamzahJamal