How to hid or show tab

I am wondering if hide or show Tab1 according to the input$display

---
title: trial
output:
  flexdashboard::flex_dashboard:
  logo: cornoavirus.png
  orientation: rows
  social: menu
  vertical_layout: fill
runtime: shiny
---
  
```{r setup, include=FALSE}
#------------------ Packages ------------------
library(dplyr)
library(flexdashboard)
library(shiny)
library(shinyWidgets)

Column {.sidebar data-width=350}

radioButtons("display", "Display",
            choices = c("Show", "Hide"), 
            selected = "Show")
show_hide <- reactive({input$display})

Row {.tabset}

Tab1

Tab2

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.