Suppress warning message in R console of shiny

r, shiny

Solution

Insert this in your ui script.

tags$style(type="text/css",
         ".shiny-output-error { visibility: hidden; }",
         ".shiny-output-error:before { visibility: hidden; }"
)

Problem

We developed a shiny application. It was showing some warning messages, we never bothered it, because the application is working fine. But, we can't distribute the application with warning message appearing in the console. Now my question is, how to suppress the warning message in R console, when shiny application is running.

Original source