title: How to load an image in Shiny
body: <p>I would like to display an image in my shiny app but I can't find the path I have to give.</p>
  
  <p>My app structure is the following :</p>
  
  <pre><code>App&gt;
    server.R
    ui.R
    wwww&gt;
      images&gt;
        image.png
  </code></pre>
  
  <p>And I have the following code :</p>
  
  <pre><code>ui &lt;- fluidPage(
    tags$div(img(src = "www/images/image.png"))
  )
  
  server &lt;- function(input, output) {}
  
  runApp(list(ui = ui, server = server))
  </code></pre>
  
  <p>It doesn't work.</p>
  
  <p>I tried a lot of syntax for the path, even something like </p>
  
  <p>options("shiny.port" = 8080)
      img(src = paste0("<a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a>:", getOption("shiny.port"), "/www/images/image.png"))</p>
  
  <p>But i'm realy struggling to disply the image, in the html inspector I always have "failed to load the given url".
  If you have any ideas... thanks !</p>
  
  <p>NB : I'm able to load css with the same syntax (i.e. tags$style("www/css/style.css"))</p>