RStudio Presenter

author: Huichun Chien Chien date: December 21 2014 transition: rotate

Vacation Flight Advisor: Advisor on your vacation schedule

RStudio Presentation

Authoring content

Compiling and tools

- R Studio auto formats and runs the code when you save the document - Mathjax JS library is loaded by default so that $x^2$ yields \(x^2\) - Slide navigation button on the preview; clicking on the notepad icon takes you to that slide in the deck - Clicking on more yields options for - Clearning the knitr cache - Viewing in a browser (creates a temporay html file in AppData/local/temp for me) - Create a html file to save where you want) - A refresh button - A zoom button that brings up a full window

Visuals

transition: linear

Here’s the option “linear”

transition: linear - Just put transition: linear right after the slide creation (three equal signs or more in a row) - Tansition options - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation

Hierarchical organization

type: section - If you want a hierarchical organization structure, just add a type: typename option after the slide - This changes the default appearance - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation - This is of type section

Here’s a subsection

type: subsection

Two columns


Changing the slide font

font-import: http://fonts.googleapis.com/css?family=Risque font-family: ‘Risque’

Really changing things

- If you know html5 and CSS well, then you can basically change whatever you want - A css file with the same names as your presentation will be autoimported - You can use css: file.css to import a css file - You have to create named classes and then use class: classname to get slide-specific style control from your css - (Or you can apply then within a <span>) - Ultimately, you have an html file, that you can edit as you wish - This should be viewed as a last resort, as the whole point is to have reproducible presentations, but may be the easiest way to get the exact style control you want for a final product

Slidify versus R Studio Presenter

Slidify - Flexible control from the R MD file - Under rapid ongoing development - Large user base - Lots and lots of styles and options - Steeper learning curve - More command-line oriented


R Studio Presenter - Embedded in R Studio - More GUI oriented - Very easy to get started - Smaller set of easy styles and options - Default styles look very nice - Ultimately as flexible as slidify with a little CSS and HTML knowledge