-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path11_12_24.qmd
198 lines (148 loc) · 5.1 KB
/
11_12_24.qmd
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
---
title: "R for <br>Authoring!!"
author: "OOH Session #51...<br>...[polling]{.election} via R: Part II"
title-slide-attributes:
data-background-image: https://img.freepik.com/premium-vector/pop-art-surprised-lady_81894-2801.jpg?w=740
data-background-opacity: ".3"
format:
revealjs:
mouse-wheel: false ## yes enables mouse
slide-tone: false
# navigation-mode: vertical
transition: convex
transition-speed: slow
# controls-layout: bottom-right
# controls-tutorial: true
# slide-number: h.v
mermaid:
theme: forest
# output-location: slide ## column-fragment; inserts blank 2nd slide
code-overflow: wrap ## instead of horizontal scroll
theme: [league, weekly.scss] ## night & league
logo: "erg2.png"
footer-logo-link: "https://ergreports.com/" ## https://github.com/shafayetShafee/reveal-header#readme
preview-links: false ## true brings up iframe window instead of "site"
code-annotations: hover
html-math-method:
method: mathjax ## LaTeX in code annotations
url: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/latest.js?config=TeX-MML-AM_CHTML"
engine: knitr ## not picking up inline codes
bibliography: temp.bib
#lightbox: true
filters:
- reveal-header ## extension to add a hyperlink to slide logo
---
```{r, warning=FALSE, message=FALSE}
#devtools::install_github("hadley/emo") ## if anyone else wants to render
library(fontawesome)
```
## Open Office Hours <br>(`r format(Sys.Date(),"%B %d, %Y")`)
::: {layout="[80,20]"}
::: first-column
- Recap session #50 `r emo::ji("left_right_arrow")`
- Focal issue(s):
- [polling]{.election} via `r fontawesome::fa("r-project", fill="#4287f5")`: Part II
+ [surveydown](https://surveydown.org/) `r emo::ji("down_arrow")`
- Shared problem-solving
:::
::: second-column
:::
:::
![](img/title50.JPG){.absolute top="170" right="-120" width="600" height="325"}
# Recap of Session #50:
## [Polling]{.election} via [Surveydown](https://surveydown.org/) ...Part I
:::: {.panel-tabset}
### Overview
![](https://surveydown.org/images/technologies.png){.absolute height="400" right="0"}
![](https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExcjh0dWxhOWJlZ2xkNTZ0MmRvYm55NG54NHQ4cXV3eXI1aTdxMmlxMSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/TzmXkFao3dXXExjKvJ/giphy.gif){.absolute left="0" bottom="80"}
### Setup
:::: {.columns}
::: {.column width="50%"}
```{r}
#| eval: false
#| echo: true
install.packages("surveydown")
library(surveydown)
sd_create_survey("path/to/folder") #<1>
```
1. Currently each survey needs to be stored in it's own separate **project folder**.
![](https://www.mediastorehouse.com/p/690/young-boys-setting-bowling-pins-arcade-bowling-22335978.jpg.webp){.absolute width="500"}
:::
::: {.column width="50%"}
::: {.fragment}
![](img/surveydown.JPG)
::: {.fragment}
![](https://pngimg.com/d/red_arrow_PNG12.png){.absolute height="300" bottom="65" right="50"}
:::
:::
:::
::::
### Survey Specs
:::: {.columns}
::: {.column width="50%"}
```
---
echo: false
warning: false
---
``{r}
library(surveydown)
``
::: {#welcome .sd-page}
# Welcome to our survey!
This is a simple demonstration of a `surveydown` survey. It has two pages with one question on each page.
Here is a basic "multiple choice" question, created using `type = 'mc'` inside the `sd_question()` function:
``{r}
sd_question(
type = 'mc',
id = 'penguins',
label = "Which type of penguin do you like the best?",
option = c(
'Adélie' = 'adelie',
'Chinstrap' = 'chinstrap',
'Chilly Willy' = 'chilly',
'Gentoo' = 'gentoo'
)
)
``
You need to insert next buttons with `sd_next()` and set the `next_page` argument to the name of the page you want to go to next.
``{r}
sd_next(next_page = 'page2')
``
:::
::: {#page2 .sd-page}
This is another page in your survey.
{surveydown} supports many types of questions. For example, here is a simple `text` type question:
``{r}
sd_question(
type = "text",
id = "silly_word",
label = "Write a silly word here:"
)
sd_next(next_page = 'end')
``
:::
::: {#end .sd-page}
## End
This it the last page in the survey.
``{r}
sd_close("Exit Survey")
``
:::
```
:::
::: {.column width="50%"}
{{< revealjs file="survey.html" height="500px" class="ratio ratio-16x9" full-screen-link="false">}}
:::
::::
::::
# Today...
## ...on the hunt for more [surveydown](https://surveydown.org/) d-tails
![](https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExdjVsdzZvN3B6MWJzbXplcjc0MGg5MG50ZGVhMjkyb2l1bWo5MTI3cSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/LwzJu1FeQaERgwo110/giphy.gif){.absolute right="0"}
![](https://surveydown.org/images/logo.png){.absolute bottom="40" left="-20" height="250"}
![](https://pngimg.com/d/bush_PNG7202.png){.absolute left="45" top="150"}
![](https://www.onlygfx.com/wp-content/uploads/2021/12/magnifying-glass-clipart.png){.absolute height="200" right="280" bottom="165"}
## `r fontawesome::fa("r-project", fill="#4287f5")` Session Info (`r format(Sys.Date(),"%B %d, %Y")`) Rendering:
```{r}
sessionInfo()
```