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§
- RWrapper
Entry - R wrapper code with priority for ordering.
- Trait
Dispatch Entry - Trait dispatch entry mapping (concrete_tag, trait_tag) → vtable.
Enums§
- RWrapper
Priority - Ordering priority for R wrapper code fragments.
Statics§
- MX_
ALTREP_ REGISTRATIONS - ALTREP class registration functions, called once at package init.
- MX_
CALL_ DEFS - R
.Callmethod 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
@rdnametag. - inject_
rdname 🔒 - Inject
#' @rdname <value>(and@titleif missing) into an R wrapper fragment. Inserts before the first@export/@keywords/@sourceline, 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
@rdnamevalue 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.