How to hide tab id in tabPanel?

For some reason, 'tab-2961-2' appears at the bottom of the tab.

Is there a way to hide it?

Below the code used:

library(shiny)
library(shinycssloaders)
library(shinythemes)

ui = fluidPage(
  navbarPage("My Awesome App",
  theme = shinythemes::shinytheme("cyborg"),
  tabPanel("Tab 1"),
  withSpinner(plotOutput("plot1"))
  )
)

server = function(input, output) {
   output$plot1 = renderPlot({plot(mtcars$wt, mtcars$mpg)
})

}

shinyApp(ui = ui, server = server)

Hi, it looks like the plotOutput is not inside the tabPanel:

  tabPanel("Tab 1"),
  withSpinner(plotOutput("plot1"))

I think it should be:

  tabPanel("Tab 1",
            withSpinner(plotOutput("plot1")))

Also, it looks like you're missing a parent tabsetPanel(), but I'm not 100% sure about that one.

Thanks! Your solution solved my problem!

1 Like