How can I insert an image into the navbar on a shiny navbarPage()

后端 未结 4 542
一向
一向 2020-11-29 04:54

I am builidng a shiny application using a navbarPage() layout. I would like to insert an image to be on the right hand side of the screen, in the navigation bar

4条回答
  •  暖寄归人
    2020-11-29 05:03

    Here is a solution I made based on the previous great answers:

     ui <- 
       fluidPage(  
           list(
             tags$head(
               HTML(''))),
    
        navbarPage("App user name", windowTitle = "App name",
        ...
    

    The place for saving images is "www" folder on the Shiny app server:

    shinyApp/app.R
    shinyApp/www/favicon.png
    

提交回复
热议问题