Changing logo of shiny app in browser

2,909 views
Skip to first unread message

Toh Wei Zhong

unread,
Aug 19, 2014, 10:06:15 AM8/19/14
to shiny-...@googlegroups.com
Hi!

Was wondering if there is a way to change shiny app's logo that appears in the browser tab, when I run app and open it in browser? Default is the empty document logo: http://icongal.com/gallery/image/89511/file_paper_blank_document.png

Thanks!

WZ

Robin Cura

unread,
Aug 19, 2014, 10:22:26 AM8/19/14
to Toh Wei Zhong, shiny-...@googlegroups.com
Hi,

Just use a favicon :

shinyUI(fluidPage(
  titlePanel("YourTitle",
              tags$head(tags$link(rel = "icon", type = "image/png", href = "favicon.png"),
                        tags$title("YourTitle"))
  ), ...)

The favicon.png should be in ~/www/ folder :)

HTH,

Robin


WZ

--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/0b7c34c4-9e0a-4d0d-80d0-22cdca84a861%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Toh Wei Zhong

unread,
Aug 19, 2014, 12:27:00 PM8/19/14
to shiny-...@googlegroups.com, wiz...@gmail.com, robin...@parisgeo.cnrs.fr
Hi Robin, thanks! That works great!

WZ
Reply all
Reply to author
Forward
0 new messages