-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresume.Rmd
176 lines (147 loc) · 3.68 KB
/
resume.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
---
title: ""
author: Matthew Bain
date: "`r format(Sys.Date(), '%B %d, %Y')`"
output:
pdf_document:
latex_engine: xelatex
keep_tex: false
includes:
in_header: !expr fs::path_package("autocv", "extdata/latex","custom_resume.tex")
# TODO: archive?
# Turn off header and footer (\customshowheaders{true/false})
# header-includes:
# - |
# \newif\ifcustomshowheaders
# \customshowheadersfalse
fontsize: 11pt
geometry: margin=0.55in, bottom=0.5in, headsep=0.15in, footskip=0.15in
params:
# resume_data_filename: "resume_data.xlsx"
target: "app"
app_id: "latest"
app_period: "latest"
use_abridged: FALSE
sort_appended: FALSE
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
results='asis',
echo = FALSE
)
library(autocv)
library(glue)
library(dplyr)
target <- params$target
app_id <- params$app_id
app_period <- params$app_period
use_abridged <- params$use_abridged
sort_appended <- params$sort_appended
# Load data and preprocess
skill_data <- autocv::load_application_data(
target = target,
filename = "resume_data.xlsx",
sheet = "skills",
# skip = 2
app_id = app_id,
app_period = app_period
) %>% autocv::sort_skills(., target = target, use_abridged = use_abridged)
position_data <- autocv::load_application_data(
target = target,
filename = "resume_data.xlsx",
sheet = "entries",
# skip = 1
app_id = app_id,
app_period = app_period
) %>% autocv::preprocess_entries(
.,
style = "latex",
bullet_style = "-",
use_abridged = use_abridged,
sort_appended = sort_appended,
skill_set_sorted = skill_data
)
contact_data <- autocv::load_application_data(
target = target,
filename = "cover_data.xlsx",
sheet = "contact_info",
app_id = app_id,
app_period = app_period
) %>% autocv::preprocess_contacts(., style = "latex")
text_data <- autocv::load_application_data(
target = target,
filename = "cover_data.xlsx",
sheet = "text_blocks",
app_id = app_id,
app_period = app_period
) %>% autocv::preprocess_text(use_abridged = use_abridged)
```
```{r extract, include=FALSE}
name <- contact_data$address_text[contact_data$loc == "name"]
role <- text_data$text[text_data$loc == "title"]
bio <- text_data$text[text_data$loc == "bio"]
suffix <- contact_data$address_text[contact_data$loc == "title"]
contacts_text <- autocv::print_contact_info(
contact_data,
section = "info",
sep = " | "
)
links_text <- autocv::print_contact_info(
contact_data,
section = "links",
sep = " | "
)
skills_list <- autocv::build_skill_list(
skill_data,
sep = " • ",
separate_competencies = TRUE,
competencies_header = "Other"
)
```
\myname{`r paste0(name, ", ", suffix)`} `r paste(contacts_text)`
<!-- \vspace{-4pt} -->
<!-- ### \myrole{`r paste(role)`} -->
\vspace{-4pt}
`r paste(links_text)`
\mybio{`r paste(bio)`}
## \mysection{Skills} \mysectionrule{}
\vspace{-4pt}
`r paste(skills_list)`
<!-- `r paste(build_skill_table(skill_data))` -->
## \mysection{Selected Professional Experience} \mysectionrule{}
```{r jobs}
autocv::print_latex_section(
position_data,
section_id = "work",
short_entries = TRUE,
target = target
)
```
## \mysection{Education} \mysectionrule{}
```{r education}
autocv::print_latex_section(
position_data,
section_id = "education",
short_entries = TRUE,
target = target
)
```
## \mysection{Certifications} \mysectionrule{}
```{r certificates}
autocv::print_latex_section(
position_data,
section_id = "certifications",
short_entries = TRUE,
target = target
)
```
## \mysection{Selected Projects} \mysectionrule{}
```{r projects}
autocv::print_latex_section(
position_data,
section_id = "projects",
short_entries = TRUE,
target = target
)
```
\label{LastPage}