Expand description
Package initialization (miniextendr_init! support).
Consolidates all init steps into init::package_init.
Package initialization for miniextendr R packages.
package_init consolidates all initialization steps that were previously
scattered across entrypoint.c.in. The miniextendr_init! proc macro
generates the R_init_* entry point that calls this function.
§Usage
In your crate’s lib.rs:
ⓘ
miniextendr_init!(mypkg);This expands to an extern "C-unwind" fn R_init_mypkg(dll) that calls
package_init with the appropriate package name.
Constants§
- WRAPPER_
GEN_ 🔒ENV - Env var the Makevars wrapper-gen recipe sets before
dyn.loading the freshly-built shared object to generateR/*-wrappers.R.
Functions§
- package_
init ⚠ - Initialize a miniextendr R package.
- wrapper_
gen_ 🔒mode truewhen the package was loaded purely for wrapper generation — seeWRAPPER_GEN_ENV.