-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpresentation.html
767 lines (595 loc) · 21.8 KB
/
presentation.html
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
<!DOCTYPE html>
<html lang="" xml:lang="">
<head>
<title>Website and CV build with RStudio</title>
<meta charset="utf-8" />
<meta name="author" content="Rachel Rui Ying Oh & Georg J. A. Hähn" />
<meta name="date" content="2023-05-15" />
<script src="presentation_files/header-attrs/header-attrs.js"></script>
<script src="presentation_files/fabric/fabric.min.js"></script>
<link href="presentation_files/xaringanExtra-scribble/scribble.css" rel="stylesheet" />
<script src="presentation_files/xaringanExtra-scribble/scribble.js"></script>
<script>document.addEventListener('DOMContentLoaded', function() { window.xeScribble = new Scribble({"pen_color":["#FF0000"],"pen_size":3,"eraser_size":30,"palette":[]}) })</script>
<link href="presentation_files/panelset/panelset.css" rel="stylesheet" />
<script src="presentation_files/panelset/panelset.js"></script>
<script src="presentation_files/clipboard/clipboard.min.js"></script>
<link href="presentation_files/xaringanExtra-clipboard/xaringanExtra-clipboard.css" rel="stylesheet" />
<script src="presentation_files/xaringanExtra-clipboard/xaringanExtra-clipboard.js"></script>
<script>window.xaringanExtraClipboard(null, {"button":"Copy Code","success":"Copied!","error":"Press Ctrl+C to Copy"})</script>
<link href="presentation_files/shareon/shareon.min.css" rel="stylesheet" />
<script src="presentation_files/shareon/shareon.min.js"></script>
<link href="presentation_files/xaringanExtra-shareagain/shareagain.css" rel="stylesheet" />
<script src="presentation_files/xaringanExtra-shareagain/shareagain.js"></script>
<meta name="twitter:title" content="Website and CV build with RStudio"/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:creator" content="@GeorgHaehn"/>
<meta name="twitter:site" content="@GeorgHaehn"/>
<meta property="og:title" content="Website and CV build with RStudio"/>
<meta property="og:type" content="website"/>
<meta property="og:locale" content="en_US"/>
<meta property="article:author" content="Rachel Rui Ying Oh & Georg J. A. Hähn"/>
<link rel="stylesheet" href="xaringan-themer.css" type="text/css" />
</head>
<body>
<textarea id="source">
class: title-slide, center, middle
## Website and CV build with RStudio
### Rachel Rui Ying Oh & Georg J. A. Hähn
2023-05-15
---
name: about-us
class: middle, center
# About us
<img style = "border-radius: 60%;" src = "https://pbs.twimg.com/profile_images/1584801093208481794/C0NKIf8r_400x400.jpg" width = 26%/> `\(\qquad\)` `\(\qquad\)`
<img style = "border-radius: 60%;" src = "https://avatars.githubusercontent.com/u/93133085?v=4" width = 26%/>
### Rachel Rui Ying Oh `\(\quad\)` `\(\quad\)` Georg J. A. Hähn
#### `\(\quad\)` `\(\quad\)` `\(\qquad\)` Postdoctoral researcher `\(\qquad\)` `\(\qquad\)` Scientific employee of sPlot & sMon
---
class: center, middle
# Let's get to know each other
--
### Please, tell us who you are and why are you interested in the course.
---
class: left
# <svg aria-hidden="true" role="img" viewBox="0 0 640 512" style="height:1em;width:1.25em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:currentColor;overflow:visible;position:relative;"><path d="M128 32C92.7 32 64 60.7 64 96V352h64V96H512V352h64V96c0-35.3-28.7-64-64-64H128zM19.2 384C8.6 384 0 392.6 0 403.2C0 445.6 34.4 480 76.8 480H563.2c42.4 0 76.8-34.4 76.8-76.8c0-10.6-8.6-19.2-19.2-19.2H19.2z"/></svg> Why should I do my CV / website in R?
--
### <br>
### `\(\qquad\)` `\(\qquad\)` Common environment and language you already know.
--
### `\(\qquad\)` `\(\qquad\)` Big community, a lot of resources and ideas.
--
### `\(\qquad\)` `\(\qquad\)` Very easy to implement your current research.
---
class: left
# <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:currentColor;overflow:visible;position:relative;"><path d="M61.1 224C45 224 32 211 32 194.9c0-1.9 .2-3.7 .6-5.6C37.9 168.3 78.8 32 256 32s218.1 136.3 223.4 157.3c.5 1.9 .6 3.7 .6 5.6c0 16.1-13 29.1-29.1 29.1H61.1zM144 128a16 16 0 1 0 -32 0 16 16 0 1 0 32 0zm240 16a16 16 0 1 0 0-32 16 16 0 1 0 0 32zM272 96a16 16 0 1 0 -32 0 16 16 0 1 0 32 0zM16 304c0-26.5 21.5-48 48-48H448c26.5 0 48 21.5 48 48s-21.5 48-48 48H64c-26.5 0-48-21.5-48-48zm16 96c0-8.8 7.2-16 16-16H464c8.8 0 16 7.2 16 16v16c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V400z"/></svg> Course menu
--
### `\(\qquad\)` `\(\qquad\)` The basics:
`\(\qquad\)` `\(\qquad\)` `\(\qquad\)` `\(\qquad\)` `\(html\)` <br>
<br>
`\(\qquad\)` `\(\qquad\)` `\(\qquad\)` `\(\qquad\)` `\(\LaTeX\)`
--
### `\(\qquad\)` `\(\qquad\)` What is a good CV?
--
#### `\(\qquad\)` `\(\qquad\)` `\(\qquad\)` `\(\qquad\)` A professional CV with `\(rmarkdown\)`.
--
### `\(\qquad\)` `\(\qquad\)` How to create a personal website.
---
class: left
# The basics: `\(html\)`
.pull-left[
```
<p>This is a paragraph.</p>
<h1>This is a level 1 heading</h1>
<h2>This is a level 2 heading</h2>
<h3>This is a level 3 heading</h3>
<a href="https://www.example.com">Link to Example</a>
<img src="image.jpg" alt="Description of the image" width = 10%>
```
]
--
.pull-right[
<p>This is a paragraph.</p>
<h1>This is a level 1 heading</h1>
<h2>This is a level 2 heading</h2>
<h3>This is a level 3 heading</h3>
<a href="https://www.example.com">Link to Example</a>
<img src="presentation_files/1.new_site.png" alt="Description of the image" width = 10%>
]
---
class: left
# The basics: `\(html\)`
.pull-left[
```
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
```
]
--
.pull-right[
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
<ul>
<li>Item A</li>
<li>Item B</li>
<li>Item C</li>
</ul>
]
---
class: left
# The basics: `\(html\)`
.pull-left[
```
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
```
]
--
.pull-right[
<br>
<br>
<table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 3</td>
<td>Cell 4</td>
</tr>
</table>
]
---
class: left
# The basics: `\(html\)`
.pull-left[
```
<style>
x {
background-color: lightblue;
font-family: Arial;
color: red;
}
y {
font-size: 48px;
color: white;
text-shadow: 2px 2px black;
margin: 40px;
}
z {
font-size: 24px;
line-height: 1.5;
margin: 100px;
}
</style>
```
]
--
.pull-right[
<style>
x {
background-color: lightblue;
font-family: Arial;
color: red;
}
y {
font-size: 48px;
color: white;
text-shadow: 2px 2px black;
margin: 40px;
}
z {
font-size: 24px;
line-height: 1.5;
margin: 100px;
}
</style>
``` <x> This is x </x> ```
<x> This is x </x>
<br>
<br>
``` <y> This is y </y> ```
<y> This is y </y>
<br>
<br>
``` <z> This is z </z> ```
<z> This is z </z>
]
---
class: left
# The basics: `\(html\)`
### Changing the alignment of just one part of the text.
.pull-left[
```
In general I write on the left side,
but sometimes
<center>
in the center
</center>
<DIV align = right>
or on the right.
</DIV>
Afterwards, I just continue on the left.
```
]
--
.pull-right[
In general I write on the left side, but sometimes
<center> in the center </center>
<DIV align = right> or on the right. </DIV>
Afterwards, I just continue on the left.
]
---
class: left
# The basics: `\(html\)`
### How do I add a link to my webpage?
--
.pull-left[
```
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="red.html">Red</a></li>
<li><a href="math.html">Math</a></li>
</ul>
</nav>
```
]
--
.pull-right[
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="red.html">Red</a></li>
<li><a href="math.html">Math</a></li>
</ul>
</nav>
]
---
class: left
# The basics: `\(\LaTeX\)`
--
### Why should I care about?
--
### High-quality typesetting, which is especially important for mathematical and scientific symbols and equations.
--
### Easy cross-referencing and citation capabilities, making it easy to reference figures, equations, tables.
--
.pull-left[
```
This is a mathematical equation:
`$$\frac{\sqrt{x}}{\alpha+\beta}=\gamma$$`
Using \$\LaTeX\$.
```
]
--
.pull-right[
This is a mathematical equation:
`$$\frac{\sqrt{x}}{\alpha+\beta}=\gamma$$`
Using `\(\LaTeX\)`.
]
---
class: left
# The basics: Can I combine them?
--
### Of course! <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:currentColor;overflow:visible;position:relative;"><path d="M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z"/></svg>
--
<style>
h2{
font-family: Arial;
color: red;
text-align: center
}
text {
font-size: 20px;
line-height: 1.5;
color: blue;
margin: 330px
}
</style>
<body>
<h2>Welcome!</h2>
<text>This is a mathematical equation:
`\(\frac{\sqrt{x}}{\alpha+\beta}=\gamma\)`
</text>
</body>
--
.pull-left[
```
<style>
h2{
font-family: Arial;
color: red;
text-align: center
}
text {
font-size: 20px;
line-height: 1.5;
color: blue;
margin: 330px
}
</style>
```
]
--
.pull-right[
```
< body>
<h2>Welcome!</h2>
<text>This is a mathematical equation:
`\(\frac{\sqrt{x}}{\alpha+\beta}=\gamma\)`
</text>
</body>
```
]
---
class: inverse, center, middle
# <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:currentColor;overflow:visible;position:relative;"><path d="M88 0C74.7 0 64 10.7 64 24c0 38.9 23.4 59.4 39.1 73.1l1.1 1C120.5 112.3 128 119.9 128 136c0 13.3 10.7 24 24 24s24-10.7 24-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C119.5 47.7 112 40.1 112 24c0-13.3-10.7-24-24-24zM32 192c-17.7 0-32 14.3-32 32V416c0 53 43 96 96 96H288c53 0 96-43 96-96h16c61.9 0 112-50.1 112-112s-50.1-112-112-112H352 32zm352 64h16c26.5 0 48 21.5 48 48s-21.5 48-48 48H384V256zM224 24c0-13.3-10.7-24-24-24s-24 10.7-24 24c0 38.9 23.4 59.4 39.1 73.1l1.1 1C232.5 112.3 240 119.9 240 136c0 13.3 10.7 24 24 24s24-10.7 24-24c0-38.9-23.4-59.4-39.1-73.1l-1.1-1C231.5 47.7 224 40.1 224 24z"/></svg>
# Coffee break
---
class: inverse, center, middle
# A professional CV with `\(rmarkdown\)`.
<img src = "https://media4.giphy.com/media/3o84sw9CmwYpAnRRni/giphy.gif?cid=ecf05e47ocwo5esy5sjp23ix2vo3b6ld9lwzzyip9xf0hy9f&ep=v1_gifs_search&rid=giphy.gif&ct=g" width = 90%/>
---
class: inverse, center
# Meet Darth Vader.
<img src = "https://media4.giphy.com/media/K9yzeKyvvva9i/giphy.gif?cid=ecf05e476n8o8yz6vk0c4ebfo93rwmxksy0wx7ky7zpi1ywa&ep=v1_gifs_related&rid=giphy.gif&ct=g" width = 70%/>
--
### He is looking for a new job...
---
class: left
# He started with the `\(vitae\)` R package
--
.left-column[
<img src = "https://ropensci.org/blog/2019/01/10/vitae/PeFoXDy.png">
]
.right-column[
### Using dataframes with his information:
#### Education
```r
library(vitae)
library(tibble)
tribble(
~ Degree, ~ Year, ~ Institution, ~ Where,
"Dark Side Studies", "19 BBY - 4 BBY", "Palpatine Institute", "Death Star I",
"Jedi Initiate and Youngling", "33 BBY - 28 BBY", "The Jedi Academy", "Corouscant",
"Jedi Master", "Quit", "The Jedi Academy", "Corouscant"
) %>%
detailed_entries(Degree, Year, Institution, Where)
```
]
---
class: inverse
### With `\(vitae\)` and the `\(awesomecv\)` theme.
<center>
<img src = "presentation_files/Vitae.png", width = 40%>
</center>
---
class: left, inverse
# Than he tried `\(pagedown\)`.
### This looks already pretty good or?
<center>
<img src = "presentation_files/Pagedown.png" width = 35%>
</center>
---
class: middle, center
# Is there a more automated way?
--
### YES! <svg aria-hidden="true" role="img" viewBox="0 0 512 512" style="height:1em;width:1em;vertical-align:-0.125em;margin-left:auto;margin-right:auto;font-size:inherit;fill:currentColor;overflow:visible;position:relative;"><path d="M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5c-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13L448 224c8.8 0 16 7.2 16 16c0 6.8-4.3 12.7-10.4 15c-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6c0 7.8-5.6 14.3-13 15.7c-8.2 1.6-15.1 7.3-18 15.1s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9c0 6.7-4.2 12.6-10.2 14.9c-11.5 4.5-17.7 16.9-14.4 28.8c.4 1.3 .6 2.8 .6 4.3c0 8.8-7.2 16-16 16H286.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62c14.6-11.7 24-29.7 24-50c0-4.5-.5-8.8-1.3-13c15.4-11.7 25.3-30.2 25.3-51c0-6.5-1-12.8-2.8-18.7C504.8 273.7 512 257.7 512 240c0-35.3-28.6-64-64-64l-92.3 0c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89zM32 192c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32H96c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32H32z"/></svg>
--
#### With `\(datadrivencv\)`.
--
#### Simply start a new .R file.
```
library(datadrivencv)
datadrivencv::use_datadriven_cv(
full_name = "Darth Vader",
data_location = "https://docs.google.com/spreadsheets/d/1DevCfJgBiY-_LNZn_pkf3TQuUtsHv7aYNoNcRibhA1g/edit?usp=sharing",
pdf_location = "CV-datadriven/CV_Darth-Vader.pdf",
html_location = "CV-datadriven/CV_Darth-Vader.html",
source_location = "CV-datadriven/automate-cv-rmd/"
)
```
---
class: middle, center
# So I just need to update my google sheet?
--
### https://docs.google.com/spreadsheets/d/1DevCfJgBiY-_LNZn_pkf3TQuUtsHv7aYNoNcRibhA1g/edit?usp=sharing
--
### Simply run render_cv.R.
```
# Knit the HTML version
rmarkdown::render("cv.rmd",
params = list(pdf_mode = FALSE),
output_file = "cv.html")
# Knit the PDF version to temporary html location
tmp_html_cv_loc <- fs::file_temp(ext = ".html")
rmarkdown::render("cv.rmd",
params = list(pdf_mode = TRUE),
output_file = tmp_html_cv_loc)
# Convert to PDF using Pagedown
pagedown::chrome_print(input = tmp_html_cv_loc,
output = "cv.pdf")
```
---
class: left, inverse
# Voilla!
<center>
<img src = "presentation_files/Datadriven.png" width = 35%>
</center>
---
class: left, inverse
# Let`s start a simple website!
--
### Create a new project.
<center>
<img src = "presentation_files/B_directory.png" width = 50%>
</center>
---
class: left, inverse
# Let`s start a simple website!
--
### Choose the project type.
<center>
<img src = "presentation_files/C_project-type.png" width = 60%>
</center>
---
class: left, inverse
# Let`s start a simple website!
### Choose the directory.
<center>
<img src = "presentation_files/D_directory.png" width = 60%>
</center>
</textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"slideNumberFormat": "%current%",
"highlightStyle": "github",
"highlightLines": true,
"ratio": "16:9",
"countIncrementalSlides": false
});
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
window.dispatchEvent(new Event('resize'));
});
(function(d) {
var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler");
if (!r) return;
s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }";
d.head.appendChild(s);
})(document);
(function(d) {
var el = d.getElementsByClassName("remark-slides-area");
if (!el) return;
var slide, slides = slideshow.getSlides(), els = el[0].children;
for (var i = 1; i < slides.length; i++) {
slide = slides[i];
if (slide.properties.continued === "true" || slide.properties.count === "false") {
els[i - 1].className += ' has-continuation';
}
}
var s = d.createElement("style");
s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }";
d.head.appendChild(s);
})(document);
// delete the temporary CSS (for displaying all slides initially) when the user
// starts to view slides
(function() {
var deleted = false;
slideshow.on('beforeShowSlide', function(slide) {
if (deleted) return;
var sheets = document.styleSheets, node;
for (var i = 0; i < sheets.length; i++) {
node = sheets[i].ownerNode;
if (node.dataset["target"] !== "print-only") continue;
node.parentNode.removeChild(node);
}
deleted = true;
});
})();
// add `data-at-shortcutkeys` attribute to <body> to resolve conflicts with JAWS
// screen reader (see PR #262)
(function(d) {
let res = {};
d.querySelectorAll('.remark-help-content table tr').forEach(tr => {
const t = tr.querySelector('td:nth-child(2)').innerText;
tr.querySelectorAll('td:first-child .key').forEach(key => {
const k = key.innerText;
if (/^[a-z]$/.test(k)) res[k] = t; // must be a single letter (key)
});
});
d.body.setAttribute('data-at-shortcutkeys', JSON.stringify(res));
})(document);
(function() {
"use strict"
// Replace <script> tags in slides area to make them executable
var scripts = document.querySelectorAll(
'.remark-slides-area .remark-slide-container script'
);
if (!scripts.length) return;
for (var i = 0; i < scripts.length; i++) {
var s = document.createElement('script');
var code = document.createTextNode(scripts[i].textContent);
s.appendChild(code);
var scriptAttrs = scripts[i].attributes;
for (var j = 0; j < scriptAttrs.length; j++) {
s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value);
}
scripts[i].parentElement.replaceChild(s, scripts[i]);
}
})();
(function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
links[i].target = '_blank';
}
}
})();
// adds .remark-code-has-line-highlighted class to <pre> parent elements
// of code chunks containing highlighted lines with class .remark-code-line-highlighted
(function(d) {
const hlines = d.querySelectorAll('.remark-code-line-highlighted');
const preParents = [];
const findPreParent = function(line, p = 0) {
if (p > 1) return null; // traverse up no further than grandparent
const el = line.parentElement;
return el.tagName === "PRE" ? el : findPreParent(el, ++p);
};
for (let line of hlines) {
let pre = findPreParent(line);
if (pre && !preParents.includes(pre)) preParents.push(pre);
}
preParents.forEach(p => p.classList.add("remark-code-has-line-highlighted"));
})(document);</script>
<script>
slideshow._releaseMath = function(el) {
var i, text, code, codes = el.getElementsByTagName('code');
for (i = 0; i < codes.length;) {
code = codes[i];
if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) {
text = code.textContent;
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
/^\$\$(.|\s)+\$\$$/.test(text) ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
code.outerHTML = code.innerHTML; // remove <code></code>
continue;
}
}
i++;
}
};
slideshow._releaseMath(document);
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML';
if (location.protocol !== 'file:' && /^https?:/.test(script.src))
script.src = script.src.replace(/^https?:/, '');
document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
</body>
</html>