Learn R Programming

HKRbook (version 0.1.3)

mmstat.getLog: mmstat.getLog

Description

Returns the internal log message as HTML. In a Shiny app the log message are updated every 100 milliseconds

Usage

mmstat.getLog(session)

Value

HTML code

Arguments

session

session object

Examples

Run this code
# will work only in A Shiny app
if (interactive()) {
  require("shiny")
  ui <- fluidPage(
    titlePanel("getLog example"),
       sidebarLayout(sidebarPanel(
         actionButton("quit", "Quit")),
         mainPanel(textOutput("log"))
   )
 )
#
  server <- function(input, output, session) {
    observeEvent(input$quit, { stopApp() })
    output$log <- renderText({ mmstat.getLog(session) })
  }
#
  shinyApp(ui, server)
}

Run the code above in your browser using DataLab