Expand description
Native code loading — compile, load, and call C code from R packages.
Implements the .Call() → C function pipeline:
- Parse
src/Makevarsfor compiler flags - Compile
src/*.cinto a shared library using the system C compiler - Load the
.so/.dylibvialibloading - Dispatch
.Call()— convertRValue→ SEXP, call, convert back
Modules§
- compile
- Package C/C++ code compilation — Makevars parser and compiler invocation.
- convert
- RValue ↔ SEXP conversion.
- dll
- Dynamic library loading — dyn.load(), dyn.unload(), symbol lookup.
- rmath
- Rmath — Statistical distribution functions and special math functions.
- runtime
- Rust-native R C API runtime.
- sexp
- SEXP type definitions — the C-compatible memory layout for R values.
- stacktrace
- Native symbol resolution for stack traces.