-
Notifications
You must be signed in to change notification settings - Fork 0
/
coms.qmd
57 lines (54 loc) · 1.18 KB
/
coms.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
---
title: "Communications"
css: css/pubs.css
execute:
echo: false
warning: false
message: false
---
```{r load_packages}
library(dplyr)
library(htmltools)
library(reactable)
library(readxl)
library(stringr)
```
```{r import_data}
df <-
read_excel("cv/data/infos.xlsx", sheet = "Communications") |>
arrange(-ID) |>
mutate(
Type = ifelse(Type == "oral", "Oral", "Poster"),
City = paste0(City, " (", Country, ")"),
Authors = str_replace_all(Authors, "de Müllenheim PY", "<b>de Müllenheim PY</b>"),
Title = paste0("<b>", Title, "</b>"),
Congress = paste0("<I>", Congress, ". ", City, "</I>"),
Item = paste0(
Title, "<br> ",
Authors, "<br> ",
Congress
)
) |>
select(ID, Year, Item, Type) |>
rename(No = ID)
```
```{r show_data}
reactable(
df,
searchable = TRUE,
minRows = 1,
showPageSizeOptions = TRUE,
defaultPageSize = 100,
paginationType = "jump",
strip = TRUE,
columns = list(
No = colDef(minWidth = 50, align = "center"),
Year = colDef(minWidth = 80, align = "center"),
Type = colDef(minWidth = 80, align = "center"),
Item = colDef(
minWidth = 300,
html = TRUE
)
)
)
```