my code:-
library(shiny)
ui <- fluidPage(
titlePanel("Find square of x"),
numericInput("x","x:",5),
uiOutput("y")
)
server <- function(input, output){
output$y <- renderUI({
numericInput("y","Square of x:",input$x * input$x)
})
}
shinyApp(ui = ui, server = server)
In this app user can change the value of output "Square of x". Is there any way this can be prevented (means user input can be disabled in output).
Or anything like if a user modifies output "Square of x" than input "x" also get change accordingly.
