Skip to content

Return error messages from R?Β #18

@NielsKSchjoedt

Description

@NielsKSchjoedt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions