I am having problems in getting shiny output to run when I make selections in UI. My server code is below.
shinyServer(function(input, output, session) {      
    values <- reactiveValues();  
    values$clus_num <- NULL; 
    observe({    
      values$clus_num <- input$ss_clus_num_btn; 
      print(values$clus_num)
    })    
    output$ssid <- function(){
      cluster_num <- values$clus_num;
      if(identical(values$clus_num, 0)){
        print("no Cluster selected\n")
      }else{
        print("cluster selected\n")
      }
      print(cluster_num)
      ssids <- get_items_in_cluster(cluster_result, cluster_num)
      return(ssids)
    }
})
When I make changes in the UI the print statement in observe is getting executed and I can see the values of values$clus_num changing correctly. So I know for sure the client is able to send the data to the server. But None of the print statements in output$ssid are getting executed. Any changes in the observed value should make the output$ssid to re-execute. Why is that not happening?
 
     
    