e <- new.env()
register_method(e, test = function() cli_alert_info("test"))
check_method(e, "cli_alert_info", "cli")
register_method(e, test = function() cli::cli_alert_info("test"))
check_method(e, "cli_alert_info", "cli")
Run the code above in your browser using DataLab