generated from inSilecoInc/workshop_R_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cws_shiny_workshop.Rmd
139 lines (89 loc) · 2.3 KB
/
cws_shiny_workshop.Rmd
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
---
title: "Building Shiny apps"
author: "inSileco Team"
date: 2022-10-09
output:
xaringan::moon_reader:
css: [default, rd.css, rd-font.css, "hygge"]
lib_dir: assets
seal: false
nature:
highlightStyle: dracula
countIncrementalSlides: false
beforeInit: "macros.js"
---
```{r setup, include = FALSE}
source("_setup.R")
# knitr::clean_cache(TRUE)
htmltools::tagList(
xaringanExtra::use_clipboard(
button_text = "<i class=\"fa fa-clipboard\"></i>",
success_text = "<i class=\"fa fa-check\" style=\"color: #37abc8\"></i>",
),
rmarkdown::html_dependency_font_awesome()
)
xaringanExtra::use_scribble()
```
class: title-slide, middle
## .font120[Building Shiny Apps]
<br>
.instructors[
.font180[`r rp()` Workshop]
<br><br><br>
.authors140[David Beauchesne, Kevin Cazelles & Steve Vissault]
<br><br>
`r format(Sys.time(), '%B %d, %Y')`
<br>
.font200[
[`r gh()`](https://github.com/inSilecoInc)
[`r db()`](link_to_data)
[`r rfa("file-pdf")`](link_to_pdf_version)
]
]
<br>
<img src="img/logoW.png" width="140px"></img>
<!-- Modify accordingly -->
<!-- [![deploy workshop](https://github.com/inSilecoInc/cws-shiny-workshop/actions/workflows/deploy.yml/badge.svg)](https://github.com/inSilecoInc/cws-shiny-workshop/actions/workflows/deploy.yml) -->
.instructors[Content under [`r rfa("creative-commons")` `r rfa("creative-commons-by")`](https://creativecommons.org/licenses/by/4.0/) unless otherwise specified.]
---
class: inverse, center, middle
# Learning objectives
![:custom_hr]()
---
# Learning objectives
--
### 1. What is reactive programming?
--
### 2. How is a Shiny app structured?
--
### 3. What are the workflows in a Shiny app?
--
### 4. How to debug a Shiny app?
---
# Technical objectives
### Build a Shiny app that:
--
- uses tabular and spatial data
--
- allows a user to filter the data based on
- table attributes
- spatial attributes
--
- provides a summary of the filtered data
```{R, child = "_01_shiny_intro.Rmd"}
```
```{R, child = "_02_shiny_mini.Rmd"}
```
```{R, child = "_03_shiny_spatial.Rmd"}
```
```{R, child = "_04_shiny_synthesis.Rmd"}
```
```{R, child = "_05_shiny_in_prod.Rmd"}
```
---
# Exercise
### Description
Use countdown with `cdw`
`r cdw(minutes = 15, seconds = 0)`
```{R, child = "_last.Rmd"}
```