Description Usage Value Examples
log_init
should be put into the shiny
ui
to initialize JavaScript code that enables logging to JavaScript console
in an Internet browser.
1 | log_init()
|
A tagList
with script
tag inside head
tag.
1 2 3 4 5 6 7 8 9 10 | 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)")
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.