
Run a command's REPL handler with positional/keyword arguments
Source:R/stat_commands.R
run_stat_command.RdRun a command's REPL handler with positional/keyword arguments
Value
Whatever the handler returns. Stops with an informative error if the command is not registered.
Examples
cmd <- stat_command("demo_echo", "misc", "demo_echo",
"Echo demo command",
handler_repl = function(...) "ok")
register_stat_command(cmd)
run_stat_command("demo_echo")
#> [1] "ok"