
Register a stat_command in the package-level registry
Source:R/stat_commands.R
register_stat_command.RdRegister a stat_command in the package-level registry
Examples
cmd <- stat_command("demo_echo", "misc", "demo_echo",
"Echo demo command",
handler_repl = function(...) "ok")
register_stat_command(cmd)
!is.null(resolve_stat_command("demo_echo"))
#> [1] TRUE