I am newbie to the r shiny and I am developing a web app that takes input as text and numeric. Next, the numeric value should be assigned to the declared text as a variable.
I have tried this
library(shiny)
ui<-fluidPage(
titlePanel("test"),
numericInput("num", label = h3("Numeric input"), value = 1),
hr(),
fluidRow(column(3, verbatimTextOutput("value"))),
textInput("text", label = h3("Text input"), value = "Enter text..."),
hr(),
fluidRow(column(3, verbatimTextOutput("value")))
)
server<- function(input, output) {
output$value <- renderPrint({ input$num })
output$value <- renderPrint({ input$text })
}
shinyApp(ui = ui, server = server)
Now after this where is the value assigned? How can I extract the value of this assignment?