shiny-project/ - ui.R - server.R - www/ - custom.css - some_functions.js - logo.jpg - auth/ - sign-in.R
In my ui.R I source them as follows:
dashboardHeaderPlus(title = tagList( span(class = "logo-lg", "App Title", style = "padding: 0;"), img(src = "logo.jpg"))), ... dashboardBody( useShinyjs(), # Include shinyjs useShinyalert(), # Include shinyalert shiny::singleton( shiny::tags$ tags$link(rel = "stylesheet", href = "custom.css"), tags$script(src="some_functions.js") ) ), source("auth/sign-in.R", local = TRUE)$value,
And nothing under the top level directory (
shiny-project) gets loaded. If I move sign-in.R to the top level it will be sourced, but still not styled. Note that all this works without issue locally as written above.
What's going on? Why aren't my style files, images and JS files loading?