Skip to main content

Module registry

Module registry 

Source
Expand description

Automatic registration internals.

Items annotated with #[miniextendr] self-register at link time. The C entrypoint calls registry::miniextendr_register_routines to finalize registration with R. Users don’t interact with this module. Automatic registration for miniextendr.

Every #[miniextendr] item self-registers at link time. package_init() (generated by miniextendr_init!) calls miniextendr_register_routines during R_init_* to finalize registration with R. Users never interact with this module.

Structs§

RWrapperEntry
R wrapper code with priority for ordering.
TraitDispatchEntry
Trait dispatch entry mapping (concrete_tag, trait_tag) → vtable.

Enums§

RWrapperPriority
Ordering priority for R wrapper code fragments.

Statics§

MX_ALTREP_REGISTRATIONS
ALTREP class registration functions, called once at package init.
MX_CALL_DEFS
R .Call method registrations (function + method C wrappers).
MX_R_WRAPPERS
R wrapper code fragments with priority for ordering.
MX_TRAIT_DISPATCH
Trait dispatch entries for universal_query.

Functions§

collect_r_wrappers
Collect all R wrapper entries, sorted by priority and deduplicated.
has_no_rd_tag 🔒
Check if an R wrapper fragment has @noRd.
has_rdname_tag 🔒
Check if an R wrapper fragment already has an @rdname tag.
inject_rdname 🔒
Inject #' @rdname <value> (and @title if missing) into an R wrapper fragment. Inserts before the first @export/@keywords/@source line, or after the last roxygen line.
miniextendr_register_routines
Register all #[miniextendr] routines and ALTREP classes with R.
miniextendr_write_wrappers
C-callable entry point for R wrapper generation via cdylib.
rdname_from_source_file 🔒
Derive an @rdname value from a source file path.
sort_s7_classes 🔒
Sort S7 class definitions so parents come before children.
universal_query
Universal query function for trait dispatch.
write_r_wrappers_to_file
Write all R wrapper entries to a file.