Skip to main content

Module native

Module native 

Source
Expand description

Native code loading — compile, load, and call C code from R packages.

Implements the .Call() → C function pipeline:

  1. Parse src/Makevars for compiler flags
  2. Compile src/*.c into a shared library using the system C compiler
  3. Load the .so/.dylib via libloading
  4. Dispatch .Call() — convert RValue → 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.