我正在开发一个shiny 的应用程序,其中我使用tabsetPanel
,当用户输入某些特定的输入时生成.因此,我想使用renderUI
函数使tabsetPanel出现/消失.
我现在的挣扎是number of tabPanel
个元素(tabsetPanel
的论点)also depends on user input,顺便说一句:有时我需要1个,有时我想要更多tabPanels
个.
怎么做?我试着在tabsetPanel
参数中包含conditionPanel
或简单if()...
条件,但它(毫不奇怪…)没用.