/
people.qmd
61 lines (52 loc) · 1.34 KB
/
people.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: "People"
link-external-icon: false
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
library(dplyr)
```
```{r}
team <- fs::dir_ls("_data/team", regexp = "\\w+\\-\\w+\\.yml") %>%
purrr::map(yaml::read_yaml)
# Put Seb first (group leader)
team <- c(
team[which(purrr::map(team, "name") == "Sebastian Funk")],
team[-which(purrr::map(team, "name") == "Sebastian Funk")]
)
```
```{r}
current_team <- team %>%
purrr::keep(function(x) x[["current-member"]])
```
Team members are staff, students and long-term visitors (3 months or more) of the group.
## Current team members
```{r, results='asis'}
current_team %>%
purrr::map_chr(function(e) {
knitr::knit_expand(
"_team_member.Rmd",
name = e[["name"]],
webpage = e[["webpage"]],
github = e[["github"]],
twitter = e[["twitter"]],
orcid = e[["orcid"]],
description = e[["description"]]
)
}) %>%
{ knitr::knit_child(text = unlist(.), quiet = TRUE) } %>%
cat(sep = "\n")
```
## Former team members
```{r, results='asis'}
former_team <- team %>%
purrr::keep(function(x) !x[["current-member"]]) %>%
purrr::map_chr(function(e) {
if (is.null(e[["webpage"]]) || e[["webpage"]] == "") {
return(e[["name"]])
} else {
return(glue::glue('[{e[["name"]]}]({e[["webpage"]]})'))
}
}) %>%
cat(sep = " · ")
```