Examples for 'shinyjs::showLog'


Print any JavaScript console.log messages in the R console

Aliases: showLog

Keywords:

### ** Examples

if (interactive()) {
  library(shiny)

  shinyApp(
    ui = fluidPage(
      useShinyjs(),
      textInput("text", "Type something")
    ),
    server = function(input, output) {
      showLog()
      logjs("App started")
      observe({
        logjs(paste("Length of text:", nchar(input$text)))
      })
    }
  )
}
Attaching package: 'shiny'
The following object is masked from 'package:shinyjs':

    runExample
Error in loadNamespace(name): there is no package called 'webshot'

[Package shinyjs version 2.1.0 Index]