मैं बटन है, लेकिन मूल्यों को स्वचालित रूप से बदल जाएगा इससे पहले कि मैं हिट "अद्यतन" आदेश, मैं नहीं जानता कि कैसे इसे ठीक करने के लिए. इस तरह से होना चाहिए:दर्ज करें छवि विवरण यहाँनीचे है मेरे कोड:
library(shiny)
ui <- fluidPage(
titlePanel("My Simple App"),
sidebarLayout(
sidebarPanel(
helpText("Controls for my app"),
selectInput("fruitchoice",
label = "Choose a fruit",
choices = list("Apples",
"Oranges",
"Mangos",
"Pomegranate"),
selected = "Percent White"),
sliderInput("amt",
label = "Order Amount:",
min=0, max = 100, value=20),
actionButton ("Update","Update Order")
),
mainPanel(
helpText("Fruit Chosen:"),
verbatimTextOutput("fruit"),
helpText("Order Amount"),
verbatimTextOutput("amt")
)
)
)
# Define server logic required to draw a histogram
server <- function(input, output) {
SelectInput <- eventReactive (input$Update , {
runif(input$fruitchoice,amt)
})
output$fruit = renderText(input$fruitchoice)
output$amt = renderText(input$amt)
}
# Run the application
shinyApp(ui = ui, server = server)
render*
अंदरobserve
याreactive
? I. ई. आम तौर पर घोंसले के शिकार सक्रिय प्रतिक्रियाशील?