I'm having trouble discovering the correct way to include an image in my project. Currently my app directory has the 'www' subdirectory, which in turn has an 'images' subdirectory. See below.
When I run the app locally using runApp(), all the images display correctly, but when I deploy the app to
shinyapps.io, I get little broken image icons where all my images should be. In ui.R, I'm using the following code:
img(src="/images/icon.png")
Any hints on why this works locally but not when deployed?
Thanks!
Project structure:
- App
- server.R
- ui.R
- helpers.R
- /www