Skip to main content

do_call_on_exit

Function do_call_on_exit 

Source
fn do_call_on_exit(
    args_val: &RValue,
    named: &[(String, RValue)],
    target_env: &Environment,
) -> Result<RValue, RError>
Expand description

Handle do.call(on.exit, list(expr, add), envir=env).

on.exit is a pre-eval builtin that stores unevaluated expressions. When called via do.call, the expression is already an RValue (typically a Language/call object). We convert it back to an Expr for storage.