Hi team,
I am new to Rstudio and Shiny. I am in need of running python code when we click a button in UI I created in shiny app. Is it possible to do this?
Attaching the code of UI.
library(shiny)
ui <- fluidPage(
titlePanel("R Session Cleaner"),
label = "Choose",
radioButtons("radio", label = h3("Radio buttons"),
choices = list("Test1" = 1, "Test2" = 2,
"Test3" = 3),
selected = 1),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
server <- function(input, output) {
output$value <- renderPrint({ input$radio })
}
shinyApp(ui, server)
Thanks in advance,
Best,
Siddharth