Skip to content

Shiny

You can log shiny-related events with logApp, by default it will log inputs and their values, this can be changed, customised or turned off.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(log)
library(shiny)

ui <- fluidPage(
  h1("hello"),
  actionButton("hello", "world"),
  dateRangeInput("date", "Date"),
  selectInput("sel", "Select", choice = letters)
)

server <- function(input, output, session){
}

logApp(ui, server)

If you are using a package that already modifies the application (e.g.: titan) and cannot use logApp, you can use shinyWithLog instead.

1
2
3
shinyWithLog(
  titan::titanApp(ui, server)
)