How I can include the use of the extension deck.automation.js when I create a document Rmarkdown-slidify-deck.js in RStudio? It is to show a presentation on a screen with statistical content without interaction from anyone, and when finished will start automatically.
Asked
Active
Viewed 382 times
1 Answers
3
Here is a demo of how to add this extension to deckjs, while using Slidify. In short, here is what you need to do.
- Use
author("mydeck")to initialize deck, changeframeworktodeckjsand runslidify("index.Rmd") - Download the extension
automaticand add it tolibraries/frameworks/deckjs/extensions. - Modify
libraries/frameworks/deckjs/config.ymlso thatautomaticis added to the list of extensions. - Modify
libraries/frameworks/deckjs/partials/snippet.html, so that the javascript snippet required to initialize the extension is added.
You can also add an option for Play/Pause, as well as set custom slide durations. Instructions are in the slide deck here.
UPDATE: The instructions here assume that you have the dev branches of Slidify and Slidifylibraries installed.
pkgs <- c("slidify", "slidifyLibraries")
devtools::install_github(pkgs, "ramnathv", ref = "dev")
Ramnath
- 54,439
- 16
- 125
- 152
-
Thank you very much, it works perfectly. In the html code that is created appears 1.7 instead of 1.7.2: – user2876719 Oct 14 '13 at 07:41
-
That should be alright, unless the features make use of the later versions of jQuery. I will update this in the next version of `slidifyLibraries`. – Ramnath Oct 14 '13 at 09:32