|
1 |
| -RStudio Presenter |
2 |
| -=== |
3 |
| -author: Brian Caffo, Jeff Leek Roger Peng |
4 |
| -date: `r format(Sys.Date(), format="%B %d %Y")` |
5 |
| -transition: rotate |
6 |
| -
|
7 |
| -<small> |
8 |
| -Department of Biostatistics |
9 |
| -Bloomberg School of Public Health |
10 |
| -Johns Hopkins University |
11 |
| -Coursera Data Science Specialization |
12 |
| -</small> |
13 |
| -
|
14 |
| -
|
15 |
| -RStudio Presentation |
16 |
| -=== |
17 |
| -- RStudio created a presentation authoring tool within their |
18 |
| -development environment. |
19 |
| -- If you are familiar with slidify, you will also be familiar with this tool |
20 |
| - - Code is authored in a generalized markdown format that allows for code chunks |
21 |
| - - The output is an html5 presentation |
22 |
| - - The file index for the presenter file is .Rpres, which gets converted to an .md file and then to an html file if desired |
23 |
| - - There's a preview tool in RStudio and GUIs for publishing to Rpubs or viewing/creating an html file |
24 |
| -
|
25 |
| -Authoring content |
26 |
| -=== |
27 |
| -- This is a fairly complete guide |
28 |
| - - http://www.rstudio.com/ide/docs/presentations/overview |
29 |
| -- Quick start is |
30 |
| - - `file` then `New File` then `R Presentation` |
31 |
| - - (`alt-f` then `f` then `p` if you want key strokes) |
32 |
| - - Use basically the same R markdown format for authoring as slidify/knitr |
33 |
| - - Single quotes for inline code |
34 |
| - - Tripple qutoes for block code |
35 |
| - - Same options for code evaluation, caching, hiding etcetera |
36 |
| -
|
37 |
| -Compiling and tools |
38 |
| -=== |
39 |
| -- R Studio auto formats and runs the code when you save the document |
40 |
| -- Mathjax JS library is loaded by default so that `$x^2$` yields $x^2$ |
41 |
| -- Slide navigation button on the preview; clicking on the notepad icon takes you to that slide in the deck |
42 |
| -- Clicking on `more` yields options for |
43 |
| - - Clearning the knitr cache |
44 |
| - - Viewing in a browser (creates a temporay html file in `AppData/local/temp` for me) |
45 |
| - - Create a html file to save where you want) |
46 |
| -- A refresh button |
47 |
| -- A zoom button that brings up a full window |
48 |
| -
|
49 |
| -Visuals |
50 |
| -=== |
51 |
| -transition: linear |
52 |
| -
|
53 |
| -- R Studio has made it easy to get some cool html5 effects, like cube transitions |
54 |
| -with simple options in YAML-like code after the first slide such as |
55 |
| -`transition: rotate` |
56 |
| -- You can specify it in a slide-by-slide basis |
57 |
| -
|
58 |
| -Here's the option "linear" |
59 |
| -=== |
60 |
| -transition: linear |
61 |
| -
|
62 |
| -- Just put `transition: linear` right after the slide creation (three equal signs or more in a row) |
63 |
| -- Tansition options |
64 |
| - - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation |
65 |
| -
|
66 |
| -Hierarchical organization |
67 |
| -=== |
68 |
| -type: section |
69 |
| -- If you want a hierarchical organization structure, just add a `type: typename` option after the slide |
70 |
| -- This changes the default appearance |
71 |
| - - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation |
72 |
| -- This is of type `section` |
73 |
| -
|
74 |
| -Here's a subsection |
75 |
| -=== |
76 |
| -type: subsection |
77 |
| -
|
78 |
| -Two columns |
79 |
| -=== |
80 |
| -- Do whatever for column one |
81 |
| -- Then put `***` on a line by itself with blank lines before and after |
82 |
| -
|
83 |
| -*** |
84 |
| -
|
85 |
| -- Then do whatever for column two |
86 |
| -
|
87 |
| -
|
88 |
| -Changing the slide font |
89 |
| -========================================================== |
90 |
| -font-import: http://fonts.googleapis.com/css?family=Risque |
91 |
| -font-family: 'Risque' |
92 |
| -
|
93 |
| -- Add a `font-family: fontname` option after the slide |
94 |
| - - http://www.rstudio.com/ide/docs/presentations/customizing_fonts_and_appearance |
95 |
| -- Specified in the same way as css font families |
96 |
| - - http://www.w3schools.com/cssref/css_websafe_fonts.asp |
97 |
| -- Use `font-import: url` to import fonts |
98 |
| -- Important caveats |
99 |
| - - Fonts must be present on the system that you're presenting on, or it will go to a fallback font |
100 |
| - - You have to be connected to the internet to use an imported font (so don't rely on this for offline presentations) |
101 |
| -- This is the `Risque` |
102 |
| - - http://fonts.googleapis.com/css?family=Risque |
103 |
| - |
104 |
| -Really changing things |
105 |
| -=== |
106 |
| -- If you know html5 and CSS well, then you can basically change whatever you want |
107 |
| -- A css file with the same names as your presentation will be autoimported |
108 |
| -- You can use `css: file.css` to import a css file |
109 |
| -- You have to create named classes and then use `class: classname` to get slide-specific style control from your css |
110 |
| - - (Or you can apply then within a `<span>`) |
111 |
| -- Ultimately, you have an html file, that you can edit as you wish |
112 |
| - - 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 |
113 |
| -
|
114 |
| -Slidify versus R Studio Presenter |
115 |
| -=== |
116 |
| -**Slidify** |
117 |
| -- Flexible control from the R MD file |
118 |
| -- Under rapid ongoing development |
119 |
| -- Large user base |
120 |
| -- Lots and lots of styles and options |
121 |
| -- Steeper learning curve |
122 |
| -- More command-line oriented |
123 |
| -
|
124 |
| -*** |
125 |
| -**R Studio Presenter** |
126 |
| -- Embedded in R Studio |
127 |
| -- More GUI oriented |
128 |
| -- Very easy to get started |
129 |
| -- Smaller set of easy styles and options |
130 |
| -- Default styles look very nice |
131 |
| -- Ultimately as flexible as slidify with a little CSS and HTML knowledge |
132 |
| -
|
| 1 | +RStudio Presenter |
| 2 | +=== |
| 3 | +author: Brian Caffo, Jeff Leek Roger Peng |
| 4 | +date: `r format(Sys.Date(), format="%B %d %Y")` |
| 5 | +transition: rotate |
| 6 | + |
| 7 | +<small> |
| 8 | +Department of Biostatistics |
| 9 | +Bloomberg School of Public Health |
| 10 | +Johns Hopkins University |
| 11 | +Coursera Data Science Specialization |
| 12 | +</small> |
| 13 | + |
| 14 | + |
| 15 | +RStudio Presentation |
| 16 | +=== |
| 17 | +- RStudio created a presentation authoring tool within their |
| 18 | +development environment. |
| 19 | +- If you are familiar with slidify, you will also be familiar with this tool |
| 20 | + - Code is authored in a generalized markdown format that allows for code chunks |
| 21 | + - The output is an html5 presentation |
| 22 | + - The file index for the presenter file is .Rpres, which gets converted to an .md file and then to an html file if desired |
| 23 | + - There's a preview tool in RStudio and GUIs for publishing to Rpubs or viewing/creating an html file |
| 24 | + |
| 25 | +Authoring content |
| 26 | +=== |
| 27 | +- This is a fairly complete guide |
| 28 | + - http://www.rstudio.com/ide/docs/presentations/overview |
| 29 | +- Quick start is |
| 30 | + - `file` then `New File` then `R Presentation` |
| 31 | + - (`alt-f` then `f` then `p` if you want key strokes) |
| 32 | + - Use basically the same R markdown format for authoring as slidify/knitr |
| 33 | + - Single quotes for inline code |
| 34 | + - Tripple qutoes for block code |
| 35 | + - Same options for code evaluation, caching, hiding etcetera |
| 36 | + |
| 37 | +Compiling and tools |
| 38 | +=== |
| 39 | +- R Studio auto formats and runs the code when you save the document |
| 40 | +- Mathjax JS library is loaded by default so that `$x^2$` yields $x^2$ |
| 41 | +- Slide navigation button on the preview; clicking on the notepad icon takes you to that slide in the deck |
| 42 | +- Clicking on `more` yields options for |
| 43 | + - Clearning the knitr cache |
| 44 | + - Viewing in a browser (creates a temporay html file in `AppData/local/temp` for me) |
| 45 | + - Create a html file to save where you want) |
| 46 | +- A refresh button |
| 47 | +- A zoom button that brings up a full window |
| 48 | + |
| 49 | +Visuals |
| 50 | +=== |
| 51 | +transition: linear |
| 52 | + |
| 53 | +- R Studio has made it easy to get some cool html5 effects, like cube transitions |
| 54 | +with simple options in YAML-like code after the first slide such as |
| 55 | +`transition: rotate` |
| 56 | +- You can specify it in a slide-by-slide basis |
| 57 | + |
| 58 | +Here's the option "linear" |
| 59 | +=== |
| 60 | +transition: linear |
| 61 | + |
| 62 | +- Just put `transition: linear` right after the slide creation (three equal signs or more in a row) |
| 63 | +- Tansition options |
| 64 | + - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation |
| 65 | + |
| 66 | +Hierarchical organization |
| 67 | +=== |
| 68 | +type: section |
| 69 | +- If you want a hierarchical organization structure, just add a `type: typename` option after the slide |
| 70 | +- This changes the default appearance |
| 71 | + - http://www.rstudio.com/ide/docs/presentations/slide_transitions_and_navigation |
| 72 | +- This is of type `section` |
| 73 | + |
| 74 | +Here's a subsection |
| 75 | +=== |
| 76 | +type: subsection |
| 77 | + |
| 78 | +Two columns |
| 79 | +=== |
| 80 | +- Do whatever for column one |
| 81 | +- Then put `***` on a line by itself with blank lines before and after |
| 82 | + |
| 83 | +*** |
| 84 | + |
| 85 | +- Then do whatever for column two |
| 86 | + |
| 87 | + |
| 88 | +Changing the slide font |
| 89 | +========================================================== |
| 90 | +font-import: http://fonts.googleapis.com/css?family=Risque |
| 91 | +font-family: 'Risque' |
| 92 | + |
| 93 | +- Add a `font-family: fontname` option after the slide |
| 94 | + - http://www.rstudio.com/ide/docs/presentations/customizing_fonts_and_appearance |
| 95 | +- Specified in the same way as css font families |
| 96 | + - http://www.w3schools.com/cssref/css_websafe_fonts.asp |
| 97 | +- Use `font-import: url` to import fonts |
| 98 | +- Important caveats |
| 99 | + - Fonts must be present on the system that you're presenting on, or it will go to a fallback font |
| 100 | + - You have to be connected to the internet to use an imported font (so don't rely on this for offline presentations) |
| 101 | +- This is the `Risque` |
| 102 | + - http://fonts.googleapis.com/css?family=Risque |
| 103 | + |
| 104 | +Really changing things |
| 105 | +=== |
| 106 | +- If you know html5 and CSS well, then you can basically change whatever you want |
| 107 | +- A css file with the same names as your presentation will be autoimported |
| 108 | +- You can use `css: file.css` to import a css file |
| 109 | +- You have to create named classes and then use `class: classname` to get slide-specific style control from your css |
| 110 | + - (Or you can apply then within a `<span>`) |
| 111 | +- Ultimately, you have an html file, that you can edit as you wish |
| 112 | + - 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 |
| 113 | + |
| 114 | +Slidify versus R Studio Presenter |
| 115 | +=== |
| 116 | +**Slidify** |
| 117 | +- Flexible control from the R MD file |
| 118 | +- Under rapid ongoing development |
| 119 | +- Large user base |
| 120 | +- Lots and lots of styles and options |
| 121 | +- Steeper learning curve |
| 122 | +- More command-line oriented |
| 123 | + |
| 124 | +*** |
| 125 | +**R Studio Presenter** |
| 126 | +- Embedded in R Studio |
| 127 | +- More GUI oriented |
| 128 | +- Very easy to get started |
| 129 | +- Smaller set of easy styles and options |
| 130 | +- Default styles look very nice |
| 131 | +- Ultimately as flexible as slidify with a little CSS and HTML knowledge |
| 132 | + |
0 commit comments