title: rmarkdown - embed sparkline into a bootstrap popover
body: <p>I'm trying to display a sparkline in a popover. I'm using rmarkdown to create my html document.</p>
  
  <p>Here is my attempt:</p>
  
  <pre><code>---
  title: "test_embed_popup"
  author: "me"
  date: "16 June 2017"
  output: html_document
  ---  
  
  ```{r}
  library(sparkline)
  library(htmltools)
  library(bsplus)
  
  bsplus::use_bs_popover()
  
  button_content &lt;- 
    spk_chr(c(1:5))
  
  tags$button(type = "button", class = "btn btn-default", "A button") %&gt;%
    bs_embed_popover(title = "I'm a popover", content = button_content, html = "true") %&gt;% 
    sparkline::spk_add_deps()
  ```
  </code></pre>
  
  <p>when i knit this document, the button with the popover appears however no sparkline is in the popover. I would like to display the sparkline in the popover.</p>
  
  <p>Any help much appreciated.</p>