Relax and grab a cold one from the Esky: it's easy to debug shiny with a simple key press.
You can install the development version of esckey like so:
remotes::install_github("TheZetner/esckey")
Add the two functions from esckey into your UI (escUI()
) and server (escServer(i = input, o = output)
) and run your app.
Hit Esc while running to browse.
Nice.
library(shiny)
library(esckey)
ui <- fluidPage(
"Hit Esc to browse",
numericInput("num",
label = "Number",
value = 2),
textInput("text",
"Text",
value = "Placeholder"),
escUI()
)
server <- function(input, output, session) {
foo <- "bar"
escServer(i = input,
o = output,
foo = foo)
}
shinyApp(ui, server)
Extremely cool Flaticon provided by Konkapp
Hex Sticker made with Hexmake