Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
title: Shiny Example
server: shiny # necessary for shiny interactive elements
format:
revealjs:
# CREATION METADATA
author:
name: Research Computing
affilitation: UAB
copyright: "© University of Alabama at Birmingham"
date: today # default date
date-format: YYYY-MM-DD
# OPTIONS - CONTROLS
controls: true
controls-layout: bottom-right
controls-back-arrows: faded
# OPTIONS - FEATURES
code-annotation: select
title-slide-attributes:
data-align: left
#
# DEVELOPER ONLY
width: 1280
height: 720
auto-stretch: false
history: true
menu: false
progress: true
revealjs-plugins:
- rStackFix
# DEVELOPER ONLY - STYLE AND THEME
highlight-style: runtime/theme/uab-rc.theme # code highlighting
css:
- runtime/theme/uab-rc.css # uab theming
- runtime/theme/fix-r-stack-hack.css # fixes r-stack div
include-in-header:
- runtime/includes/head.html
include-after-body:
- runtime/includes/footer.html
---
## Direct Code Example - R
```{r}
print("Hello World!")
```
## Included Code Example - R
```{r}
{{< include src/code-example.R >}}
```
## Interactive Iris Dataset - Shiny
<!-- UI Sidebar -->
```{r}
#| panel: sidebar
{{< include src/shiny-ui-sidebar.R >}}
```
<!-- UI Plot -->
```{r}
#| panel: fill
{{< include src/shiny-ui-plot.R >}}
```
<!-- Local server backend code-->
```{r}
#| context: server
{{< include src/shiny-ui-server.R >}}
```