In presentations we often want to demonstrate R interactively. This requires exiting the presentation and demonstrating outside of the slides or running a limited (Things like install_github
can't be used), unreliable (because Internet is unreliable in presentations) cloud based version of R (as seen in the code below). How could a local version of R be run from within an HTML presentation? In a similar fashion we can use iframe
HTML tags to include videos etc. within a presentation. This could make the presentation more seamless and flow better.
I know plotting tasks are likely much more difficult and would require a specific gui such as RStudio. If that's possible it would be great but even if it were at a low level, that is include the OS command line with R booted up in the presentation. Basically it would be like iframe
-ing R from the command line or Rstudio within the .Rmd/.html document/presentation.
This would be able to be incorporated into the slidify
, knitr
as an .Rmd or within the R Presentation (.Rpres) slide shows available in the latest version of RStudio.
So here's a version of this idea using a cloud based R that could be knit as a .Rmd file. This is a starting point but being tied to a cloud is not ideal:
R in HTML
<iframe width='100%' height='300' src='http://www.r-fiddle.org/#/embed?id=e63tlTG8' allowfullscreen='allowfullscreen' frameborder='0'></iframe>