'Write shiny$HTML(...) without tags$head(...) in Shiny
How can I write this below just using shiny$HTML to the code instead of tags$head(shiny$HTML(...)?
Ex:
tags$head(
HTML("<title> Hell Tattoo Dashboard</title>
<link rel='shortcut icon' href='www/hell.png'></link>
<link rel='stylesheet' href='www/shiny.css'></link>
<script src='www/shiny.js'></script>"
)
)
works.
I insert the <head> tag without tags$head:
HTML("<head>
<title> Hell Tattoo Dashboard</title>
<link rel='shortcut icon' href='www/hell.png'></link>
<link rel='stylesheet' href='www/shiny.css'></link>
<script src='www/shiny.js'></script>
</head>"
)
doesn't work.
I want to use shiny$HTML tags, just, pure, without tags$head. It's possible?
simple shinyApp:
library(shiny)
library(shinydashboard)
h <- dashboardHeader(title = "a")
s <- dashboardSidebar()
b <- dashboardBody()
ui <- dashboardPage(h, s, b, skin = "blue")
server <- function(input, output) {
}
shinyApp(ui, server)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
