title: How can I insert pdf images in an R presentation?
body: <p>I am writing an R presentation in an .Rpres file. I published my presentation on Rpubs here: <a href="http://rpubs.com/cr517/presentationGurdon" rel="noreferrer">http://rpubs.com/cr517/presentationGurdon</a>
  I have images stored in PDF files. I am trying to include them in my presentation, unsuccesfully. I am using this command to include the images: </p>
  
  <pre><code>![Chromosome sizes](input/images/bar/nbOfGenesPerChrom.pdf)
  </code></pre>
  
  <p>the same as for .jpg. This command does not result in the display of the image. I have tried to follow these answers but could not make it work:</p>
  
  <p><a href="https://stackoverflow.com/questions/39173714/r-markdown-can-i-insert-a-pdf-to-the-r-markdown-file-as-an-image">R markdown: can I insert a pdf to the r markdown file as an image?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/28073041/add-pdf-file-in-rmarkdown-file">Add pdf file in Rmarkdown file</a></p>
  
  <p>If somebody could help me, that would be much appreciated. That would spare me the re-run of my code exporting images in .jpg format.</p>
  
  <p>Thank you so much.</p>