-
Notifications
You must be signed in to change notification settings - Fork 0
/
render.R
36 lines (31 loc) · 929 Bytes
/
render.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
35
36
# library(renderthis)
# # Render slides
# parts <- c(
# 'introduction',
# 'designing-surveys',
# 'estimating-models',
# 'fielding-surveys'
# )
# for (part in parts) {
# to_html(
# from = file.path('parts', part, 'index.Rmd'),
# to = file.path('parts', part, 'index.html')
# )
# to_pdf(
# from = file.path('parts', part, 'index.html'),
# to = file.path('parts', part, glue::glue('{part}.pdf'))
# )
# }
# Render site
quarto::quarto_render()
# Merge slide pdfs into single file
pdfs <- c(
file.path("parts", "introduction", "introduction.pdf"),
file.path("parts", "designing-surveys", "designing-surveys.pdf"),
file.path("parts", "estimating-models", "estimating-models.pdf"),
file.path("parts", "fielding-surveys", "fielding-surveys.pdf")
)
pdftools::pdf_combine(
input = pdfs,
output = file.path('parts', '2023-qux-conf-conjoint.pdf')
)