title: Embed Youtube Video in R Markdown
body: <p>I am trying to publish a <code>.Rmd</code> in <a href="http://rpubs.com" rel="noreferrer">Rpubs</a> by embedding a YouTube video link. After some exploration, I am trying the following which just gives a blank space in my html.</p>
  
  <pre><code>&lt;div align="center"&gt;
     &lt;iframe width="560" height="315" src="http://www.youtube.com/embed/zsYjsgm4Psg" frameborder="0" allowfullscreen&gt;
     &lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Two related posts:</p>
  
  <ol>
  <li><a href="http://www.r-bloggers.com/rmarkdown-alter-action-depending-on-document/" rel="noreferrer">rmarkdown: Alter Action Depending on Document</a></li>
  <li><a href="https://support.rstudio.com/hc/communities/public/questions/203570516-R-markdown-Embedded-Youtube-Video-" rel="noreferrer">R markdown Embedded Youtube Video</a></li>
  </ol>