title: Render rCharts using ReporteRs package in powerpoint
body: <p>I can renderchart in R shiny by below code:</p>
  
  <pre><code> output$example=renderChart2({
      p1 &lt;- nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'multiBarChart')
      p1
      })
  </code></pre>
  
  <p>Now, I want the same thing in ppt. by using ReporteRs package.I have tried below code but it is not working</p>
  
  <pre><code>library(ReporteRs)
  doc =pptx( )
  doc &lt;- addSlide(doc, "Two Content")
  plotFunc&lt;- function(){ nPlot(mpg ~ wt, group = 'cyl', data = mtcars, type = 'multiBarChart')
  } 
  doc &lt;- addPlot(doc, fun =print, x = plotFunc)
  writeDoc(doc, "r-2.pptx" )
  </code></pre>
  
  <p>Can someone tell me how do render rCharts in ppt.</p>