A closure wraps an R function so it can be used as a callback from C code. The closure has an associated CIF that describes the function signature.
Usage
FFIClosure(
r_function = function() NULL,
cif = CIF(),
ref = NULL,
func_ptr = NULL
)A closure wraps an R function so it can be used as a callback from C code. The closure has an associated CIF that describes the function signature.
FFIClosure(
r_function = function() NULL,
cif = CIF(),
ref = NULL,
func_ptr = NULL
)