title: Embedding a R - Leaflet map on a jekyll site hosted on Github
body: <p>I have a website <a href="http://apapiu.github.io" rel="nofollow">here</a> hosted on Github Pages using Beautiful Jekyll. See <a href="https://github.com/apapiu/apapiu.github.io" rel="nofollow">here</a> for the actual code behind the blog on Github.</p>
  
  <p>I'd like to embed a leaflet map into one of my blog posts. I am using the R package leaflet.</p>
  
  <p>So say for example I make a map:</p>
  
  <pre><code>library(htmlwidgets)
  library(leaflet)
  
  m &lt;- leaflet() %&gt;% #basic map
       addTiles() %&gt;%
  </code></pre>
  
  <p>How do I embed this on my page? One thing I tried to do is save the html file using:</p>
  
  <pre><code>saveWidget(widget = m, file="your_map.html", selfcontained = FALSE)
  </code></pre>
  
  <p>This works and saves the html file locally. I tried copying and pasting the html code into one of <code>_posts</code> on Github but that didn't work. 
  Any suggestions?  </p>