-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResearch.qmd
96 lines (75 loc) · 1.91 KB
/
Research.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
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
---
title: "Research"
---
I am a health economist with an interest and, recently, a focus on applied research using human mobility data derived from smartphones.
```{r setup, include=FALSE}
library(tidyverse)
library(RefManageR)
```
```{r get-pubs, include=FALSE}
bib <- ReadBib('all_papers.bib')
bib<-bib[order(sapply(bib, \(x) x$year), decreasing = TRUE)]
published_papers<-
bib[which(bib$bibtype=="Article")]
working_papers<-
bib[which(bib$bibtype!="Article")]
#
#
#
# bib$bibtype=="Article"
#
#
# my_scholar_id="IxJvxPgAAAAJ"
#
#
# my_pubs<-get_publications(my_scholar_id)%>%
# as_tibble()
#
# my_pubs%>%
# rowwise()%>%
# mutate(
# url=get_publication_url(my_scholar_id,pub_id = pubid),
# )%>%
# ungroup()%>%
# mutate(
# out=glue::glue("[{title}]({url})")
# )%>%
# .$out
```
# Published papers
```{r, results='asis', echo=FALSE}
output <- lapply(published_papers, function(x) {
authors <- paste(x$author, collapse=", ")
title <- str_remove_all(x$title,"(\\{|\\})")
link <- x$url
abstract <- x$abstract
year<-x$year
cat(paste0("#### ", title," (",year,")\n",
"**Authors:** ", authors, " \n",
"[Read the paper](", link, ") \n",
"<details>\n",
"<summary>Abstract</summary>\n",
abstract, "\n",
"</details>\n\n"))
})
invisible(output)
```
# Working papers
```{r, results='asis', echo=FALSE}
output <- lapply(working_papers, function(x) {
authors <- paste(x$author, collapse=", ")
title <- str_remove_all(x$title,"(\\{|\\})")
link <- x$url
abstract <- x$abstract
year<-x$year
cat(paste0("#### ", title," (",year,")\n",
"**Authors:** ", authors, " \n",
"[Read the paper](", link, ") \n",
"<details>\n",
"<summary>Abstract</summary>\n",
abstract, "\n",
"</details>\n\n"))
})
invisible(output)
```
# Active projects