-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathindex.Rmd
1395 lines (996 loc) · 38.3 KB
/
index.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
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
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
title: "Automate your CV in `rmarkdown`: Easy as 1, 2, `knit`! 🧶"
author: "Dr Shazia Ruybal Pesántez"
institute: "R-Ladies Melbourne Meetup"
date: '2022-02-03'
output:
xaringan::moon_reader:
css: ["default", "rladies", "custom.css", "rladies-fonts"]
lib_dir: libs
nature:
slideNumberFormat: "%current%"
highlightStyle: github
highlightLines: true
ratio: 16:9
countIncrementalSlides: false
titleSlideClass: ["left", "bottom", "my-title"]
beforeInit: ["https://platform.twitter.com/widgets.js"]
seal: false
---
```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
knitr::opts_chunk$set(
fig.width=9, fig.height=3.5, fig.retina=3,
out.width = "100%",
cache = FALSE,
echo = TRUE,
message = FALSE,
warning = FALSE,
hiline = TRUE
)
library(xaringanthemer)
library(xaringanExtra)
library(showtext)
library(fontawesome)
library(metathis)
library(tidyverse)
```
```{r xaringan-themer, include=FALSE, warning=FALSE}
style_duo_accent(
header_font_google = google_font("News Cycle"),
text_font_google = google_font("Dosis", "300", "300i"),
code_font_google = google_font("Fira Mono")
)
```
```{r xaringan-extras, echo=FALSE}
xaringanExtra::use_scribble()
xaringanExtra::use_panelset()
xaringanExtra::use_clipboard()
xaringanExtra::use_share_again()
```
```{r metathis, echo=FALSE}
meta() %>%
meta_name("github-repo" = "shaziaruybal/automate-cv-rmd") %>%
meta_social(
title = "Automate your CV using R Markdown: Easy as 1, 2, knit!",
description = paste(
"A workshop that will show you how to get from data to professional CV using R Markdown.",
"Presented at the R-Ladies Melbourne meetup February 2022."
),
url = "https://shaziaruybal.github.io/automate-cv-rmd/",
image = "https://shaziaruybal.github.io/automate-cv-rmd/img/social-share-card.png",
image_alt = paste(
"Title slide of Automate your CV using R Markdown: Easy as 1, 2, knit!",
"presented at the R-Ladies Melbourne meetup February 2022 by Shazia Ruybal-Pesántez"
),
og_type = "website",
og_author = "Shazia Ruybal-Pesántez",
twitter_card_type = "summary_large_image",
twitter_creator = "@DrShaziaRuybal",
twitter_site = "@DrShaziaRuybal"
)
```
class: title-slide, bottom,center
background-image: url(img/title_bkgd.png)
background-position: top center
background-size: 100%
## `r rmarkdown::metadata$title`
### `r rmarkdown::metadata$author`
`r rmarkdown::metadata$institute`
`r rmarkdown::metadata$date`
[`r fa(name = "github")` @shaziaruybal](http://github.com/shaziaruybal)
[`r fa(name = "twitter")` @DrShaziaRuybal](http://twitter.com/DrShaziaRuybal)
[`r fa(name = "link")` shaziaruybal.com](https://shaziaruybal.com)
.pull-right[
]
---
name: about-me
class: middle, center, inverse
# About me
<img style="border-radius: 50%;" src="img/shazia.png" width="250px"/>
### Shazia Ruybal-Pesántez
#### Postdoctoral Research Scientist & R-Ladies Melbourne President
[`r fa(name = "github")` @shaziaruybal](http://github.com/shaziaruybal)
[`r fa(name = "twitter")` @DrShaziaRuybal](http://twitter.com/DrShaziaRuybal)
[`r fa(name = "link")` shaziaruybal.com](https://shaziaruybal.com)
---
layout: true
<!--this adds the repo link footer to all slides, depends on footer-link class in custom.css-->
<a class="footer-link" href="https://github.com/shaziaruybal.com/automate-cv-rmd"><strong><i class="fab fa-github"></i> automate-cv-rmd</strong>
• <i class="fab fa-twitter"></i>@DrShaziaRuybal </a>
---
name: welcometoR
background-image: url("img/welcome_to_rstats_twitter.png")
background-size: contain
background-position: middle
.footnote[
*Art by [@alison_horst](https://github.com/allisonhorst/stats-illustrations)*
]
---
class: center, middle
# Let's get to know each other
--
## 👍 if you consider yourself an `R` and/or `R Markdown` beginner
--
## ❤️ if you are comfortable or very comfortable with `R` and `R Markdown`
---
class: inverse, center
# `r fontawesome::fa("chalkboard")`
# Today we will cover:
--
### How to get from data to professional CV using `rmarkdown`
--
### Workshop materials are freely available and should help you get started on your own CV journey!
--
.left-column[
.pull-left[
### [`r icon::fa("github")` Materials](https://github.com/shaziaruybal/automate-cv-rmd)
]]
.right-column[
.pull-left[
### [`r icon::fa("images")` Slides](http://shaziaruybal.github.io/automate-cv-rmd)
]
.pull-right[
### [`r icon::fa("youtube")` Recording](https://youtu.be/Fc1RwRskk08)
]
]
---
background-image: url(https://github.com/allisonhorst/stats-illustrations/raw/master/rstats-artwork/rmarkdown_wizards.png)
background-size: 85% 85%
background-position: center
.footnote[
*Art by [@alison_horst](https://github.com/allisonhorst/stats-illustrations)*
]
---
name: packages
# Meet your new best friends
.left-column[
<img style="circle" src="img/datadrivencv_logo.svg" height="125px" width="125px"/>
<img style="circle" src="img/pagedown_logo.jpeg" height="125px" width="125px"/>
<img style="circle" src="img/vitae_logo.png" height="125px" width="125px"/>
]
--
.right-column[
#### `datadrivencv` developed by Nick Strayer
[`r icon::fa("github")` Github repo](https://github.com/nstrayer/datadrivencv)
[`r icon::fa("globe")` Package documentation](http://nickstrayer.me/datadrivencv/)
]
--
.right-column[
#### `pagedown` developed by Yihue Xie and Romain Lesur
[`r icon::fa("github")` Github repo](https://github.com/rstudio/pagedown)
[`r icon::fa("globe")` Package documentation](https://pagedown.rbind.io/#resume)
]
--
.right-column[
#### `vitae` developed by Mitchell O'Hara-Wild and Rob Hyndman
[`r icon::fa("github")` Github repo](https://github.com/mitchelloharawild/vitae)
[`r icon::fa("globe")` Package documentation](https://pkg.mitchelloharawild.com/vitae/)
]
---
# Disclaimer:
- I am assuming familiarity with R Markdown, for beginners see the [`R Markdown` resources](#rmd-tips) on the next slide
- The `datadrivencv` package uses `pagedown` and creates useful functions to import and build your CV, so I won't go over `pagedown` specifically in this talk
- but `pagedown` gets a special shoutout because it is an amazing package - you can also use it to generate all kinds of outputs, e.g. resumes, posters, thesis, letter, journal article and more!
- See the [pagedown package documentation](https://pagedown.rbind.io) for more details
- To prepare this workshop, I went step-by-step to create a CV in `datadrivencv` and `vitae` so I could provide a demo for all of you.
--
- `vitae` was easier to use and implement, if you are a beginner I would recommend using `vitae`.
- The materials and slides for this workshop can be found at [github.com/shaziaruybal/automate-cv-rmd](https://github.com/shaziaruybal/automate-cv-rmd) so feel free to come back to them on your own time. This includes the debugging steps that are necessary to get `datadrivencv` to build. The recording of the talk is on [`r icon::fa("youtube")` Youtube](https://youtu.be/Fc1RwRskk08).
---
class: inverse, top
name: rmd-tips
# Unfamiliar with R Markdown?
### [A good start here ⬇️](https://rmarkdown.rstudio.com/lesson-1.html)
![https://rmarkdown.rstudio.com/lesson-1.html](img/rstudio-rmd.png)
---
class: inverse, center, middle
# Let's dive straight in
![dive-in](https://media.giphy.com/media/26FPnj46RYsIWgYLe/giphy.gif)
---
class: inverse, center, middle
# Meet Kate Dibiasky
-----
![kate](https://media.giphy.com/media/yYyK2Uk2gfsyhNTQCz/giphy.gif)
---
class: left, inverse
# Meet Kate Dibiasky
-----
.left-column[
### `r fontawesome::fa("film")`
### `r fontawesome::fa("graduation-cap")`
### `r fontawesome::fa("meteor", fill = "white")`
]
.right-column[
### Fictional character in the Netflix movie "Don't Look Up"
### PhD candidate at Michigan State University
### Claim to fame: comet discovery
]
---
class: middle, left, inverse
background-image: url(img/kate_vitae.png)
background-size: contain
.left-column[
# This is her CV using `vitae`
]
<!-- ![](img/kate_vitae.png) -->
---
class: middle, left, inverse
background-image: url(img/kate_ddcv.png)
background-size: contain
.left-column[
# This is her CV using `datadrivencv`
]
<!-- ![](img/kate_ddcv.png) -->
---
class: inverse, center, middle
# Let's show you how to make your CV look like that 😍
--
## 🎉 if you prefer the `vitae` CV format
--
## ❤️ if you prefer the `datadrivencv`/`pagedown` CV format
---
class: center, middle
# `vitae`
![](img/vitae_logo.png)
---
name: data-vit-1
class: inverse
# Step 1: Prepare your data
### You can save all your data in one excel file, where each sheet is a different section of your CV
--
### Common sections include:
* Education
* Research
* Teaching
* Leadership
* Awards
--
### The example data from today's workshop can be viewed at [github.com/shaziaruybal/automate-cv-rmd](https://github.com/shaziaruybal/automate-cv-rmd/blob/main/kate_dibiasky_vitae_cv/dibiasky_vitae_data.xlsx)
---
name: data-vit-2
class: inverse
# Step 1: Prepare your data: The 4 W's
### Every section can be built with the same base information:
--
#### `r fontawesome::fa("question-circle")` What?
E.g. your role or an award you've received
--
#### `r fontawesome::fa("building")` With?
E.g. your institute or employer
--
#### `r fontawesome::fa("map-marker-alt")` Where?
E.g. city or country
--
#### `r fontawesome::fa("question-circle")` Why?
E.g. the details of your role or award
---
name: data-vit-3
class: inverse
# Step 1: Prepare your data
![](img/vitae-data-edu.png)
--
For the education section we use "degree" for the "what"
---
name: data-vit-4
class: inverse
# Step 1: Prepare your data
![](img/vitae-data-research.png)
--
For the research section we use "role" for the "what".
--
**`r fontawesome::fa("lightbulb")` Tip: ** If you want more than one bullet point for the role description, use another line and change "details".
---
# Step 2: Start building your CV in `vitae`
.pull-left[
Install the `vitae` package
```{r eval=F}
install.packages("vitae")
```
*Note: this package requires LaTeX to be installed on your computer. If you’re encountering issues, run:*
```{r eval=F}
install.packages("tinytex")
tinytex::install_tinytex()
```
Load the library
```{r eval=F}
library(vitae)
```
In the RStudio IDE, create a new R Markdown document from the menu `File -> New File -> R Markdown -> From Template`
]
.pull-right[
![](img/vitae_newrmd.png)
]
---
class: inverse, center, middle
# 👀 What are all those templates?
--
### Today we will only go through the `vitae::awesomecv` template, but the world is your oyster! There are currently 6 templates for you to choose from. Take a look at them at [github.com/mitchelloharawild/vitae](https://github.com/mitchelloharawild/vitae).
<!-- ![](img/reproducibility_court.png){width="40px" height="20px"} -->
---
class: inverse, center
![](https://media.giphy.com/media/SCkTcV8md46IERspXn/giphy.gif)
--
# Wasn't this supposed to be easy as 1, 2, `knit`?
--
![](https://media.giphy.com/media/yFs12GkGa4Cpq/giphy.gif){height="80%"}
---
class: top, center
<video width="1530" height="610" controls>
<source src="img/vitae-1-2-knit-highres.mp4" type="video/mp4">
</video>
---
class: right, center, inverse
# Now you've seen that it really is as easy as 1, 2 `knit`!
# Let's create Kate's CV together
.pull-right[
![](https://media.giphy.com/media/cKjtXSK0XXeJZjNCpi/giphy.gif)
]
---
# `r fontawesome::fa("x-ray")` The anatomy of the `vitae` CV .Rmd
.pull-left[
![](img/mariecurie-vitae-cv.png)
]
.pull-right[
**Header**
- Main contact information (controlled by the YAML)
**Bio**
- Optional bio (written in R Markdown)
** CV sections**
- These sections will be tailored to the sections you want to include (remember our .xlsx sheets)
- These sections are built with the `vitae::detailed_entries()` or `vitae::brief_entries()`
]
---
class: inverse, center, middle
# Let's start with the YAML header
---
# Step 3: Change the CV content: header
.pull-left[
## YAML
This controls the CV header.
```{r eval=F}
---
name: Marie
surname: Curie
position: "Professor"
address: "School of Physics & Chemistry, École Normale Supérieure"
phone: +1 22 3333 4444
www: mariecurie.com
email: "Marie.Curie@ens.fr"
twitter: mariecurie
github: mariecurie
linkedin: mariecurie
date: "`r format(Sys.time(), '%B %Y')`"
output:
vitae::awesomecv:
page_total: true
---
```
]
.pull-right[
![](img/mariecurie-vitae-cv.png)
]
---
# Step 3: Change the CV content: header
.panelset.sideways[
.panel[.panel-name[Change the YAML]
Change the content to suit your needs
```{r eval=F}
---
name: Kate
surname: Dibiasky
position: "PhD Candidate"
address: "School of Astronomy, Michigan State University"
# phone: +1 22 3333 4444
# www: mariecurie.com
email: "k.dibiasky@gmail.com"
twitter: DontLookUpFilm
github: shaziaruybal/automate-cv-rmd
# linkedin: mariecurie
date: "`r format(Sys.time(), '%B %Y')`"
output:
vitae::awesomecv:
page_total: true
---
```
**`r fontawesome::fa("lightbulb")` Tip: ** Use the `#` to comment out anything you don't want in your header
]
.panel[.panel-name[Output]
![](img/vitae-header-change.png)
]
.panel[.panel-name[Add a profile pic]
```{r eval=F}
---
name: Kate
surname: Dibiasky
position: "PhD Candidate"
profilepic: "img/kate.jpeg" #<<
address: "School of Astronomy, Michigan State University"
# phone: +1 22 3333 4444
# www: mariecurie.com
email: "k.dibiasky@gmail.com"
twitter: DontLookUpFilm
github: shaziaruybal/automate-cv-rmd
# linkedin: mariecurie
date: "`r format(Sys.time(), '%B %Y')`"
output:
vitae::awesomecv:
page_total: true
---
```
]
.panel[.panel-name[Output]
![](img/vitae-profpic.png)
]
.panel[.panel-name[Add an about me]
Add an about me that will appear just below your contact info.
```{r eval=F}
---
name: Kate
surname: Dibiasky
position: "PhD Candidate"
profilepic: "img/kate.jpeg"
address: "School of Astronomy, Michigan State University"
# phone: +1 22 3333 4444
# www: mariecurie.com
email: "k.dibiasky@gmail.com"
twitter: DontLookUpFilm
github: shaziaruybal/automate-cv-rmd
# linkedin: mariecurie
aboutme: "I have recently discovered Comet Dibiasky that is approximately #<<
10-15km in size, and based on my orbital calculations is estimated to strike #<<
Earth in 6 months and 14 days" #<<
date: "`r format(Sys.time(), '%B %Y')`"
output:
vitae::awesomecv:
page_total: true
---
```
]
.panel[.panel-name[Output]
![](img/vitae-aboutme.png)
]
.panel[.panel-name[`r fontawesome::fa("lightbulb")` Tips]
- You can also include things like `orcid` and `googlescholar` in your YAML
- Whatever text goes in `name` will be light (so if you don't want your last name to be bold, put your full name here)
- Whatever text goes in `surname` will be bold (so if you want your name to be bold, put your full name here)
- While I won't get into CSS today, you can change the CV accent color (currently red) by playing around with the `awesome-cv.cls` document where colors are defined (look from line 122)
- If you want to remove the accent color altogether, include the following in your YAML:
```{r eval=F}
headcolor: 414141
```
]
]
---
# Step 4: Load your CV data
### Let's load our .xlsx file so we can update the content of each section.
--
I've written a simple function `readExcelSheets` to read all the sheets in an .xlsx and save them as individual data frames for each CV section. This makes it super easy to load your data.
--
The function is below, feel free to use it in your own CV .Rmd. Make sure you have installed the `readxl` package.
```{r eval=F}
# install.packages("readxl") uncomment this if you need to install the package
library(readxl)
readExcelSheets <- function(filename){
# read all sheets in .xlsx
all <- readxl::excel_sheets(filename)
# import each sheet into a list using readxl::read_excel
list <- lapply(all, function(x) readxl::read_excel(filename, sheet = x))
# save sheet name for each sheet (list)
names(list) <- all
# breaks up list and creates a dataframe for each sheet with df names matching sheet names
list2env(list, envir = .GlobalEnv)
}
```
---
.pull-left[
### Let's load our .xlsx file so we can update the content of each section.
Now we can apply the function to our .xlsx file.
```{r eval=F}
filename <- here::here("kate_dibiasky_vitae_cv",
"dibiasky_vitae_data.xlsx")
readExcelSheets(filename)
```
*If you've never heard of the `here` package I **highly** recommend it! [More info here](https://here.r-lib.org)*
]
.pull-right[
This will result in a data frame for each sheet in your .xlsx file, i.e. each CV section.
From these sheets:
![](img/vitae-data-edu.png)
To these data frames:
![](img/vitae-dfs.png)
*Note: you can also have each section in its own .csv file and you would then load each .csv separately.*
]
---
class: inverse
# `r fontawesome::fa("graduation-cap")` Let's create the Education section as an example
.panelset.sideways[
.panel[.panel-name[CV entries]
![](img/vitae-cventries.png)
]
.panel[.panel-name[Default code]
The default template has the following code, which creates the data frame/tribble directly in the script. You can choose this option if you like, although this is not my personal preference. If you're still with me, we now have our `education` dataframe that we can pipe with `detailed_entries()`.
```{r eval=F}
library(tibble) #<<
tribble( #<<
~ Degree, ~ Year, ~ Institution, ~ Where, #<<
"Informal studies", "1889-91", "Flying University", "Warsaw, Poland", #<<
"Master of Physics", "1893", "Sorbonne Université", "Paris, France", #<<
"Master of Mathematics", "1894", "Sorbonne Université", "Paris, France" #<<
) %>%
detailed_entries(Degree, Year, Institution, Where)
```
]
.panel[.panel-name[Our code]
Our education data frame looks like:
![](img/vitae-educationdf.png)
To create the CV section:
```{r eval=F}
education %>%
detailed_entries(what = degree,
when = year,
with = institution,
where = where,
why = details)
```
]
.panel[.panel-name[Output]
![](img/vitae-education-change.png)
]
]
---
# `r fontawesome::fa("book")` What about publications?
.panelset.sideways[
.panel[.panel-name[Using a bibtex file]
- Download your .bib file from your favorite reference manager
- Use `vitae::bibliography_entries` for publications in your CV
Code:
```{r eval=F}
bibliography_entries(here("kate_dibiasky_vitae_cv", "papers.bib"))
```
[You can find the demo .bib file here](https://github.com/shaziaruybal/automate-cv-rmd/blob/main/kate_dibiasky_vitae_cv/papers.bib)
]
.panel[.panel-name[Output]
![](img/vitae-pub-bib.png)
]
.panel[.panel-name[R Markdown + Latex]
- If you know Latex, you can use latex commands directly in your file, e.g. for formatting.
- You can also use R Markdown syntax anywhere on your document
Code:
```{r eval=F}
## Another way to display publications is using R Markdown. You can also use latex commands throughout the document:
\setlength{\leftskip}{0cm}
**2022**
\setlength{\leftskip}{1cm}
[**Dibiasky, K.** and Mindy, R. (2022). *Discovery of a novel comet, Comet Dibiasky, heading towards Earth.* Science.](https://media.giphy.com/media/q9CS6tp1oM45pmj19U/giphy.gif)
```
]
.panel[.panel-name[Output]
![](img/vitae-pub-rmd.png)
]
.panel[.panel-name[`r fontawesome::fa("lightbulb")` Tips]
- You can use R Markdown syntax in your .xlsx file and it will print in your CV
- e.g. to add hyperlinks
```{r eval=F}
[My amazing paper](thelink.com)
```
- You can use latex commands in your .Rmd document
- e.g. to start a new page
```{r eval=F}
\newpage
# My CV Section on a new page
```
]
]
---
class: inverse, middle, center
# Once you finish editing, don't forget to knit 🧶
--
### Your .html and .pdf files will be built automatically when you knit 🤩
---
class: center
.pull-left[
`r fontawesome::fa("github")` To view the `vitae` .Rmd file, click [here](https://github.com/shaziaruybal/automate-cv-rmd/blob/main/kate_dibiasky_vitae_cv/kate_dibiasky_vitae_cv.Rmd).
![](img/kate_vitae.png)
]
.pull-right[
## We did it!
`r fontawesome::fa("download")` Download Kate's CV [here](https://github.com/shaziaruybal/automate-cv-rmd/raw/main/kate_dibiasky_vitae_cv/kate_dibiasky_vitae_cv.pdf)
![](https://media.giphy.com/media/DVYX9r42Omba1qID01/giphy.gif)
]
---
class: inverse, middle, center
# `r icon::fa("recycle")` But, how do I update my CV?
--
## 1. Edit your .xlsx file
--
## 2. Edit your .rmd file (only if you have added a new section), otherwise skip this step
--
## 3. Knit your .rmd file 🧶
--
## And, VOILA! `r fontawesome::fa("magic")`
---
# `r fontawesome::fa("lightbulb")` More tips and resources
- Check out Mitchell O'Hara-Wild and Rob Hyndman's (`vitae`'s creators!) presentation on `vitae` for more resources, including instructions on how to use the package `orcid` or `googlescholar` to import your education, experience, publication data! Slides available at [slides.mitchelloharawild.com/vitae](https://slides.mitchelloharawild.com/vitae/#1)
--
- The `vitae` GitHub page has lots of examples of "`vitae in the wild`", check it out for inspo! https://github.com/mitchelloharawild/vitae
.footnote[*Not an exhaustive list!*]
---
class: inverse, middle, center
# Questions so far?
---
class: middle, left, inverse
background-image: url(img/kate_ddcv.png)
background-size: contain
.left-column[
# Remember what the
# `datadrivencv` looked like?
]
---
class: center, middle
# `datadrivencv`
![](img/datadrivencv_logo.svg){height="80%"}
---
name: data-ddcv-1
class: left
# Step 1: Prepare your data in Google Sheets
### Click [here](https://docs.google.com/spreadsheets/d/1yCYKiTDbfYYUQYuNM304DwhUqTe4Zv-QxxfLoWPQmtY/) to view the example data used in the workshop today
![gsheetseg](img/googlesheets_eg.png)
---
name: data-ddcv-2
class: left
# Step 1: Prepare your data in Google Sheets
.panelset[
.panel[.panel-name[entries]
#### `entries`
| Column | Description |
| --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `section` | Where in your CV this entry belongs |
| `title` | Main title of the entry |
| `loc` | Location the entry occured |
| `institution` | Primary institution affiliation for entry |
| `start` | Start date of entry (year). Can be left blank for single point events like a manuscript. |
| `end` | End year of entry. Set to “current” if entry is still ongoing. |
| `description_*` | Each description column is a separate bullet point for the entry. If you need more description bullet points simply add a new column with title “description\_{4,5,..}” |
]
.panel[.panel-name[language_skills]
#### `language_skills`
| Column | Description |
| ------- | ------------------------------- |
| `skill` | Name of language |
| `level` | Relative numeric level of skill |
]
.panel[.panel-name[`text_blocks`]
#### `text_blocks`
| Column | Description |
| ------ | ----------------------------------------------------- |
| `loc` | Id used for finding text block |
| `text` | Contents of text block. Supports markdown formatting. |
]
.panel[.panel-name[contact_info]
#### `contact_info`
| Column | Description |
| --------- | ----------------------------------------------------------- |
| `loc` | Id of contact section |
| `icon` | Icon used from font-awesome 4 to label this contact section |
| `contact` | The actual value written for the contact entry |
]
]
.footnote[
Click [here](https://docs.google.com/spreadsheets/d/1yCYKiTDbfYYUQYuNM304DwhUqTe4Zv-QxxfLoWPQmtY/) to view the example data used in the workshop today. *Source: click [here](http://nickstrayer.me/datadrivencv/) for more on the `datadrivencv` data requirements.*
]
---
name: google-tips
class: inverse, center, middle
# `r fontawesome::fa("lightbulb")` Some tips:
--
### `r fontawesome::fa("check-square")` Make sure your google sheets document is not .xlsx (i.e. if you import an excel document to Google)
--
### `r fontawesome::fa("check-square")` Make sure you your google sheets is public and share the link with anyone ("Editor option")
--
![](img/google-share.png)(height="5px" width="10px")
---
name: install-ddcv
# Step 2: Start building your CV in `datadrivencv`
Install the `datadrivencv` package
```{r eval=F}
install.packages("datadrivencv")
```
--
If you get an error, download the development version. Make sure you install `devtools`
--
```{r eval=F}
install.packages("devtools")
devtools::install_github("nstrayer/datadrivencv")
```
--
With my version of R (4.1.2) I also had to install a specific version of the icons package
[*See github issue #57*](https://github.com/nstrayer/datadrivencv/issues/57), *this may be updated at a later date and may be unnecessary*
--
```{r eval=F}
install.packages("remotes")
remotes::install_github('mitchelloharawild/icons@v0.1.0')
```
---
name: new-ddcv-1
# Step 2: Start building your CV in `datadrivencv`
--
Load the library