Possible to show console messages (written with `message`) in a shiny ui?

564 views
Skip to first unread message

Dean Attali

unread,
May 22, 2015, 9:02:48 PM5/22/15
to shiny-...@googlegroups.com
I don't understand R's message vs cat vs print vs etc. too deeply, but I'm wondering if it's possible to capture messages and who them in a shiny app?

Example: the following app can capture cat statements (and print statements as well) but not message statements

runApp(shinyApp(
  ui = fluidPage(
    textOutput("test")
  ),
  server = function(input,output, session) {
    output$test <- renderPrint({
      cat("test cat")
      message("test message")
    })
  }
))


Thanks!

Dean Attali

unread,
May 27, 2015, 2:46:08 PM5/27/15
to shiny-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages