hdf5r
hdf5r copied to clipboard
[Feature request] Expose C level API via headers in compiled package
Hi, is there any plan to expose C level API to inst/include so that others can link to this wonderful package and call its C functions directly?
I currently have no plans to develop this package further. My main focus has shifted to Python in recent years and I have very limited time to spend on it. But you should be able to call the functions using .Call from R, no?
I want to link to your package with Rcpp. Basically include the headers from your package and write c++ functions instead of operating in R.
Basically it requires static header files from your package in inst/include/ path so that I can extend your package without copying and edit yours.
Here's an example from another package.
This is actually made a bit more complicated as the headers files vary by HDF5 version. In the current workflow, each major upgrade of HDF5 behind the scenes has new header files. So a-priori, you wouldn't be able to program against a stable set.
If I guessed it correctly, even though there is a C wrapper for HDF5 library, but the wrapper actually varies when HDF5 version changes. As a result, if I can link to your package wrappers, I won't be able to assume your wrappers providing stable functions, or the wrapper itself can only be dynamically loaded?