If you want to include an image in a normal shiny app, you would call
shiny::img(src = "imgName.png")
in your ui function with the following directory structure:
| shinyApp/
| ui.R
| server.R
| www/
| myImage.png
How do you replicate this in a shiny app that is also an r package? I've tried to do everything exactly the same, but with the following directory structure, with no luck:
| packageName/
| R
| app.R # contains ui.R and server.R
| inst
| www
| imgName.png
For what it's worth, in my case the package is actually bundling a shiny module, but I don't think that's relevant to this issue.
EDIT: Minimal example demonstrating my issue, using this package.