fn decode<T>(
decode: fn(SEXP) -> Result<T, String>,
state: SEXP,
) -> Result<T, RCondition>Expand description
Decodes state, catching a panic: an RCondition as itself, any other
as a DECODE_ERROR_CLASS condition with its message. An R error keeps
unwinding: its jump belongs to R (#2244).