R port of morie.stat_commands. Maintains a flat registry of
R-callable statistical command entries plus aliases, allowing
downstream tooling (the Go TIDE bridge, headless workers, REPL
frontends) to enumerate, resolve, and dispatch operations from a
single namespace.
Details
Entries are stored in the package-level environment
.morie_stat_commands so that the registry is shared across
sessions within a single R process and can be appended by extension
packages.
Functions
stat_command: constructor for a single command.register_stat_command: add an entry to the registry, validating uniqueness of name and aliases.resolve_stat_command: look up by canonical name or alias.all_stat_command_names: sorted vector of all names + aliases.commands_by_category: list of entries grouped by category.run_stat_command: invoke a command's REPL handler with the supplied arguments.