Skip to contents

Returns the executable function pointer that can be passed to C functions expecting a callback.

Usage

ffi_closure_pointer(closure)

Arguments

closure

An FFIClosure object

Value

External pointer to the callable function

Details

The returned pointer can be passed to C functions via ffi_call(). It will invoke the R function when called.

See also

ffi_closure() to create closures