How can I include a external css of a shiny app into the flexdashboard. I have tried putting css file in the YAML header but that didn't work
The style.css is inside www directory
style.css
p{
font-size:100px
}
dashboard.rmd
---
title: 'Dashboard Like a Boss'
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
orientation: rows
runtime: shiny
css: style.css
---
```{r}
ui <- fluidPage(
tags$head(tags$link(rel = "stylesheet", href = "style.css")),
tags$p("Hello, world!")
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
In the dashboard, the styling doesn't work, but when the shiny app is run in a separate file (e.g., app.R), the styling works.