Suppose I have a local function:
getres<-function(x, y){
x^2-y
}
Then I have shiny::server:
server <- function(input, output) {
reslst<-reactive({
getres(input$x, input$y)
})
output$result <- renderPrint({
reslst
})
}
When I execute the code, it reported no object reslst
which means the local function getres
hasn't run at all. Some suggestions?