I think it would be somewhat common for users to want to suppress cli messages for a given chunk of code. Something like this maybe?
cli_suppress <- function(expr) {
withCallingHandlers(
expr,
cli_message = function(c) {
invokeRestart("cli_message_handled")
}
)
}
I think it would be somewhat common for users to want to suppress cli messages for a given chunk of code. Something like this maybe?