How to create a conditional renderUI in Shiny dashboard
问题 I am unable to create a conditional sidebar menu via renderMenu because the if statement fails. "Warning: Error in if: argument is of length zero". I found conditional RenderUI R shiny and Conditional panel in Shiny dashboard but neither are what I am looking for. A conditional panel might work in this instance but in the long run I will need to be able to do this server side. if (interactive()) { library(ggplot2) library(shiny) library(shinydashboard) library(shinipsum) ui <- dashboardPage(