-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreferences.Rmd
46 lines (43 loc) · 935 Bytes
/
references.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
`r if (knitr::is_html_output()) '
# References {-}
'`
```{r include = FALSE}
# Borrowed from source for R Markdown: The Definitive Guide
# URL: https://github.com/rstudio/rmarkdown-book/blob/4538b5b1fb7e29997666ddae2a1083cb3a6cad3f/20-references.Rmd
bib = knitr::write_bib(
x = dplyr::combine(
.packages(),
"bookdown",
"dplyr",
"ggplot2",
"infer",
"kableExtra",
"knitr",
"readr",
"rmarkdown",
"tinytex"
),
file = NULL
)
bib = unlist(bib)
bib = gsub("'(Htmlwidgets|iframes|TeX Live|LaTeX)'", "\\1", bib)
xfun::write_utf8(bib, "bib/packages.bib")
# embed fonts
if (knitr::is_latex_output()) {
pdfs = list.files(knitr::opts_chunk$get("fig.path"), "[.]pdf$", full.names = TRUE)
invisible(lapply(pdfs, embedFonts))
}
```
---
nocite: |
@downey14_think_stats,
@R-bookdown,
@R-dplyr,
@R-ggplot2,
@R-infer,
@R-kableExtra,
@R-knitr,
@R-readr,
@R-rmarkdown,
@R-tinytex
...