Expand description
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.
Re-exportsΒ§
use crate::Rboolean;πuse crate::sys::DllInfo;πuse crate::sys::R_forceSymbols;πuse crate::sys::R_useDynamicSymbols;πuse std::ffi::CStr;π
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.