'How to use image in R shiny with htmlTemplate

I have a template.html file and am loading it like this:

enter image description here

I am trying to include an image using the HTML img tag. The relative path is correct. I have tried putting the image in the same directory as template.html but it is not finding it. How can I include an image in the template.html file?

enter image description here



Solution 1:[1]

shiny will make available any resources in a folder named www/, in the same location as your app.R or ui.R/server.R files.

Create a folder named www/ and put the images folder in there and that should resolve it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cnbrownlie