Skip to main content

interp_new

Function interp_new 

Source
fn interp_new(
    args: &[RValue],
    named: &[(String, RValue)],
    context: &BuiltinContext<'_>,
) -> Result<RValue, RError>
Expand description

Create a new S4 object.

Validates slot values against the registered class definition and initializes unspecified slots with prototype defaults.

@param Class character string naming the S4 class @param … slot values as named arguments @return a list with slots as named elements and the class attribute set