Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

title in tab of browser empty in shiny dashboard page

Though there is the posibility to add a title in a shiny dashboard app, which appears correctly in the app page,

## app.R ##
library(shiny)
library(shinydashboard)

ui <- dashboardPage(
  dashboardHeader(title = "my title"),
  dashboardSidebar(),
  dashboardBody()
)

server <- function(input, output) { }

shinyApp(ui, server)

It does not appear as the name of tab of the browser. As name of tab in browser only appears the URL (like 127...).

like image 981
Ferroao Avatar asked Dec 04 '16 16:12

Ferroao


1 Answers

You can set the browser page title like this

ui <- dashboardPage(title="Browser title",
  dashboardHeader(title = "Basic dashboard"),
  dashboardSidebar(),
  ...
like image 97
Xiongbing Jin Avatar answered Oct 23 '22 19:10

Xiongbing Jin