See example:
shinyFunction <- function(){
shinyApp(
ui = basicPage(
actionButton('print_message', "Print a message")
),
server = function(input, output){
observeEvent(input$print_message, {
message("Here is a message")
})
}
)
}
The app prints a message to the console on-click.
How do I suppress this behavior?
Wrapping it with
suppressMessages(shinyFunction())
does not work...
I don't want the console to print ANYTHING. How can I achieve this?
Many thanks in advance