title: Display locally-stored image in R Shiny
body: <p>I spent a fair amount of time trying to solve that issue.
  Of course I did my homework before sharing my issue here.</p>
  <p>In particular I have unsuccessfully consulted :</p>
  <ol>
  <li><a href="https://stackoverflow.com/questions/50073559/local-image-in-shiny-app-without-imgsrc">local image in shiny app without img(src())?</a></li>
  <li><a href="https://stackoverflow.com/questions/44035688/shiny-can-not-display-image-locally">Shiny can not display Image locally</a></li>
  <li><a href="https://stackoverflow.com/questions/19434991/adding-local-image-with-html-to-a-shiny-app">adding local image with html to a Shiny app</a></li>
  <li><a href="https://stackoverflow.com/questions/35760656/r-shiny-img-on-ui-side-does-not-render-the-image">R Shiny img() on UI side does not render the image</a></li>
  <li><a href="https://stackoverflow.com/questions/53147225/display-images-from-web-in-shiny-r">Display images from web in shiny R</a></li>
  <li><a href="https://stackoverflow.com/questions/50092096/image-failing-to-display-in-r-shiny">Image failing to display in R shiny</a></li>
  <li><a href="https://stackoverflow.com/questions/21996887/embedding-image-in-shiny-app">Embedding Image in Shiny App</a></li>
  <li><a href="https://stackoverflow.com/questions/36182535/how-to-place-an-image-in-an-r-shiny-title">How to place an image in an R Shiny title</a></li>
  </ol>
  <p>So I did create a 'www' folder at the root of the RStudio project file where I put some pictures.</p>
  <p>These pictures are used in the titlePanel but also by the main htmlwidget the application calls.</p>
  <p>It is crucial for me to have these pictures stored locally because the application may be running in a secured environment without any access to the Internet.</p>
  <p>I tried a relative path to these pictures and an absolute path: no picture was displayed.</p>
  <p>Then I noticed some kind of inconsistency: I experience this issue only when I run the application through the regular command in RStudio, &quot;Run Selected Line(s)&quot;.
  On the other hand, when I run the application through the dedicated command &quot;Run App&quot; (in the top right corner in RStudio, green arrow), I don't have this issue anymore, the pictures display nicely (but the input data are somehow inspected and it takes a lot of time before the application is launched).</p>
  <p>Initially I thought that displaying local images would be much easier than with remote images stored on the Internet but it seems it is rather the other way around.</p>
  <p>Hence my questions:</p>
  <ol>
  <li>Do you know why we can observe this difference (which is an inconsistency to me)?</li>
  <li>And do you know how I could still continue to use the regular execution command (&quot;Run Selected Line(s)&quot;)?</li>
  </ol>
  <p>Best regards,</p>
  <p>Olivier</p>