log_init should be put into the shiny ui to initialize JavaScript code that enables logging to JavaScript console in an Internet browser.

log_init()

Value

A tagList with script tag inside head tag.

Examples

if (interactive()) { set_logging(js_console = TRUE) shiny::shinyApp( ui = shiny::fluidPage(log_init()), server = function(input, output) { set_logging_session() log_event("See browser JavaScript console (CTRL + SHIFT + I)") } ) }