title: How to upload an image into RStudio Notebook?
body: <p>Does anyone know how to import/upload a png image from a (working) directory into a RStudio Notebook script? I like to include it in the HTML output from the Notebook. 
  The suggested script in Rmarkdown (<a href="http://rmarkdown.rstudio.com/authoring_basics.html" rel="noreferrer">http://rmarkdown.rstudio.com/authoring_basics.html</a>) does not work in Notebook.</p>
  
  <p>Here is some code that I have used/created:</p>
  
  <pre><code>#' Plot pathways using the bioconductor *pathview* package. Five *.png images are placed in the working directory by default.
  &gt;p &lt;- pathview(gene.data=foldchanges, pathway.id=keggresids, species="hsa"))
  &gt;str(p)
  </code></pre>
  
  <p>The log of 'str(p)' is a list of 5 (one for each pathway) each consisting of a data.frame plot.data.gene with 10 variables and a plot.data.cpd: NULL</p>
  
  <p>One can use the example on p.3-6 of the pathview vignette (<a href="https://www.bioconductor.org/packages/3.3/bioc/vignettes/pathview/inst/doc/pathview.pdf" rel="noreferrer">https://www.bioconductor.org/packages/3.3/bioc/vignettes/pathview/inst/doc/pathview.pdf</a>). </p>
  
  <p>Since the image is printed to the working directory, it won't show up in my Notebook HTML. Is there a way to import the image back into the document so it will render into the HTML document? I am not working in a markdown document, but in a regular R script that I compile into an HTML Notebook by selecting the Notebook icon on (or ctrl+shift+K), hence the following markdown script won't work: </p>
  
  <pre><code>![imagename](/images/file.png)
  </code></pre>
  
  <p>Any suggestions?</p>