Rserve-Ruby-client
Rserve-Ruby-client copied to clipboard
Return error messages from R?
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
I would also love to see the actual error message attached to the Rserve response.
+1
+1