-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublications.qmd
61 lines (44 loc) · 1.32 KB
/
publications.qmd
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
---
title: "Publications"
bibliography: references.bib
editor_options:
chunk_output_type: console
---
```{r}
#| include: false
require(dplyr)
bib <- bib2df::bib2df("references.bib", separate_names = T)
bib$author = unlist(lapply(bib$AUTHOR, function(x) paste(unlist(x["full_name"]), collapse = ", ")))
bib <- bib %>%
mutate(author = gsub("Holly Hall", "<strong>Holly Hall</strong>", author),
author = gsub("H. Hall", "<strong>Holly Hall</strong>", author)
) %>%
arrange(desc(YEAR), MONTH)
pub_data <- bib %>%
filter(CATEGORY == "ARTICLE") %>%
select(author, TITLE, YEAR, MONTH, JOURNAL, URL) %>%
glue::glue_data(
"<p>{author} ({YEAR}). <a href={URL} target='_blank'>{TITLE}</a>. *{JOURNAL}*</p>"
) %>%
glue::glue_collapse()
prep_data <- bib %>%
filter(CATEGORY == "PREPR") %>%
select(author, TITLE, YEAR, MONTH, JOURNAL, URL) %>%
glue::glue_data(
"<p>{author} ({YEAR}). <a href={URL} target='_blank'>{TITLE}</a>. *preprint*</p>\n"
) %>%
glue::glue_collapse()
inprep_data <- bib %>%
filter(CATEGORY == "INPREP") %>%
select(author, TITLE, YEAR, MONTH) %>%
glue::glue_data(
"<div>{author} ({YEAR}). <a href= target='_blank'>{TITLE}</a>. *In prep*</div>"
) %>%
glue::glue_collapse()
```
## Published
`r pub_data`
## Preprints
`r prep_data`
## In progress
`r inprep_data`