Expand description
S7 class wrapper generator (new_class / new_generic modern R OOP).
S7-class R wrapper generator.
Generates S7::new_class(...) with value semantics, formal property
validation, and parent-based inheritance. Property attributes
(s7(getter) / s7(setter, prop = "...")) compile to S7::new_property
with @-access semantics, including read-only computed properties and
read-write dynamic ones. Similar formal power to S4 with cleaner syntax,
but the S7 ecosystem is younger and the R-package dependency surface is
evolving. Pick S7 for new packages wanting modern formal OOP; use S4
when you need Bioconductor compatibility or multi-dispatch.
FunctionsΒ§
- class_
ref_ πor_ any_ or_ verbatim - S7-property variant of
class_ref_or_verbatimthat asks the resolver to fall back silently toS7::class_anyon miss (unregistered type, or a registered-but-non-S7 class). Prevents the load-timeobject not foundnoise called out in #203. - extract_
prop_ πdoc_ from_ tags - Extract the full property documentation from a getterβs
doc_tagsfor use in@prop <name> <doc>emission. - generate_
s7_ r_ wrapper - Generates the complete R wrapper string for an S7-style class.
- rust_
type_ πto_ s7_ class - Map a Rust return type to an S7 class name.
- shortcut_
advisory_ πlines - Roxygen prose for the fast-path dispatch shortcut advisory block.