-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrender_cv.r
34 lines (25 loc) · 1.25 KB
/
render_cv.r
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
# English Version ---------------------------------------------------------
# Knit the HTML version
rmarkdown::render("cv.rmd",
params = list(pdf_mode = FALSE, english = TRUE),
output_file = "CV_Johannes_Feldhege.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, english = TRUE),
output_file = tmp_html_cv_loc)
# Convert to PDF using Pagedown
pagedown::chrome_print(input = tmp_html_cv_loc,
output = "CV_Johannes_Feldhege.pdf")
# Deutsche Version --------------------------------------------------------
rmarkdown::render("cv.rmd",
params = list(pdf_mode = FALSE, english = FALSE),
output_file = "Lebenslauf_Johannes_Feldhege.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, english = FALSE),
output_file = tmp_html_cv_loc)
# Convert to PDF using Pagedown
pagedown::chrome_print(input = tmp_html_cv_loc,
output = "Lebenslauf_Johannes_Feldhege.pdf")