# NOT RUN {
if(interactive()){
# Run a simple 2-window app, initially bringing up the window selector window:
ui_win <- list()
ui_win[["clickinput"]] <- fluidPage(numericInput(inputId = "click", label = "a", value = 1))
ui_win[["clickoutput"]] <- fluidPage(plotOutput("clickplot"))
serv_out <- list()
serv_out[["clickplot"]] <- function(calc, session){
renderPlot({
plot(1:calc$click,1:calc$click)
})
}
mwsApp(ui_win, list(), serv_out)
}
# }
Run the code above in your browser using DataLab