thanks alot for your quick reply,
so in the below example:
in ui<-
user insert "myInput1" value then
in server<- B = input$myInput1+2
my questions is: how can I use the "B" value as integer in further integer calculations. for example: I want to use B+2= C then C+2=D finally print D as final result in shiny?
concept in shiny: user insert myInput1 value and get the result of D
library(shiny)
ui <- fluidPage(
titlePanel("Title"),
mainPanel(
numericInput("myInput1", label = "Number", value = 1),
uiOutput("ui")
)
)
server <- function(input, output) {
output$ui <- renderUI( {
tagList(
tags$h2("Display Result in %"),
numericInput("obs1", "B", value = input$myInput1+2))
})
}
shinyApp(ui = ui, server = server)