I read several guides on calling C functions from R, but none of these examples shows how to pass / return an opaque pointer to C. That is, suppose I have a C API, for example
struct foo *foo_new();
void foo_destroy(struct foo *);
How can I introduce such an API for R?
source
share