R shiny conditionalPanel output value

前端 未结 3 650
醉梦人生
醉梦人生 2020-12-09 19:26

There are many questions about conditionalPanel in R shiny, but I still don\'t understand how I can use values created by server.R for conditionalPanel

3条回答
  •  醉梦人生
    2020-12-09 20:13

    @Julien Navarre is right: the output must be rendered. Except if you set its option suspendWhenHidden to FALSE:

      output$disable_ui<-reactive({
        query<-parseQueryString(clientData$url_search)
        url_path<-paste(sep="","http://some-url.com/php/session_check.php?sid=",query, collapse="")
        read.table(url_path)
      })
      outputOptions(output, 'disable_ui', suspendWhenHidden=FALSE)
    

提交回复
热议问题