Skip to main content

builtin_dot_c

Function builtin_dot_c 

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

.C — invoke a compiled C function via the .C calling convention.

The first argument is the function name (character string or NativeSymbolInfo). Remaining arguments are R vectors whose raw data is passed directly to the C function as pointers (double*, int*, char**, etc.). The C function modifies the data in place, and the modified vectors are returned as a named list.

@param .NAME character string or native symbol reference naming the C function @param … R vectors passed by pointer to the native function @return named list of the (possibly modified) arguments @namespace base