Favicon in Shiny

后端 未结 4 1733
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 23:33

I wanted to add a favicon to my WebApp

I\'m using this line, but it doesn\'t work:

HTML(\"

        
4条回答
  •  时光说笑
    2020-12-06 00:36

    I was able to get favicon to work in r shiny using this code on both internet explorer and chrome:

    ui <- fluidPage(
      titlePanel(
        windowTitle = "NOAA",
        title = tags$head(tags$link(rel="shortcut icon", 
                                    href="https://www.noaa.gov/sites/all/themes/custom/noaa/favicon.ico", 
                                    type="image/vnd.microsoft.icon")))
    ###... rest of code
    )
    
    server <- function(input, output, session) {
    ###... rest of code
    }
    
    runApp(shinyApp(ui = ui, server = server), launch.browser = TRUE)
    

提交回复
热议问题