title: Is it possible to include ggvis() output in Rstudio *.Rpres documents?
body: <p>The latest version of rstudio includes the ability to generate HTML5 slide decks using some background magic similar to slidify.  However, if I include </p>
  
  <pre><code>Slide With Plot
  ========================================================
  
  ```{r, echo=FALSE}
  library(knitr)
  pressure %&gt;% ggvis(~temperature,~pressure) %&gt;%
    layer_points() %&gt;%
    layer_lines() 
  ```
  </code></pre>
  
  <p>I get the following results in the html output:</p>
  
  <pre><code>Slide With Plot
  
  &lt;!–html_preserve–&gt;
  
  Renderer: SVG | Canvas
  Download
  &lt;!–/html_preserve–&gt;
  </code></pre>
  
  <p>Knitting a regular *.Rmd file with the above code chunk would work as expected. However, knitting the Rpresentation file doesn't seem to work and I can't find any documentation as to why there is a difference in behavior.</p>
  
  <p>Update: It seems like HTML output isn't yet supported for presentations despite them being HTML based. This would seem to rule out ggvis() unless one exports to svg or png via the method suggested in an answer below.</p>
  
  <blockquote>
    <p>Error: Functions that produce HTML output found in document targeting revealjs output.
    Please change the output type of this document to HTML.</p>
  </blockquote>