-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.qmd
93 lines (77 loc) · 1.92 KB
/
index.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
---
title: "Graduate Student Research Seminar Series"
editor_options:
chunk_output_type: console
execute:
echo: false
---
![](images/duke.jpg){fig-alt="Photo of Duke Chapel and Broadhead Center."}
**Time**: Mondays 11:45 - 1:00 pm
**Place**: Reuben-Cooke Building 130
**Instructor:** Merlise Clyde [clyde\@duke.edu]([email protected])
```{r}
#| message: false
library(googlesheets4)
#gs4_auth(email="[email protected]")
library(gt)
library(dplyr)
```
```{r}
#| message: false
gs4_deauth()
schedule.Fall = read_sheet('https://docs.google.com/spreadsheets/d/1RI5q4TM3cUH52WXezd26vLtf9WHF1nakXe2zLTmXJKc', sheet="Fall")
schedule.Spring = read_sheet('https://docs.google.com/spreadsheets/d/1RI5q4TM3cUH52WXezd26vLtf9WHF1nakXe2zLTmXJKc', sheet="Spring")
```
## Fall Schedule {{< fa calendar-days>}}
```{r}
#| label: fall
schedule.Fall |>
mutate(
Title = if_else(!is.na(abstract), paste0("[", Title, "](abstracts/", abstract, ")"), NA)
) |>
select(-abstract) |>
gt() |>
fmt_date(
columns = Date,
date_style = "day_m"
) |>
fmt_markdown(
columns = c(Moderator, Title)
) |>
sub_missing(missing_text = "") |>
cols_width(
Date ~ px(100),
Moderator ~ px(150),
Speaker ~ px(150),
Title ~ px(450)
) |>
cols_align("left") |>
opt_stylize(style = 1, color = "gray")
```
## Spring Schedule {{< fa calendar-days>}}
```{r}
#| label: spring
schedule.Spring |>
#uncomment below when abstract column is added to sheet
#mutate(
# Title = if_else(!is.na(abstract), paste0("[", Title, "](abstracts/", abstract, ")"), NA)
# ) |>
#select(-abstract) |>
gt() |>
fmt_markdown(
columns = c(Moderator, Title)
) |>
fmt_date(
columns = Date,
date_style = "day_m"
) |>
sub_missing(missing_text = "") |>
cols_width(
Date ~ px(100),
Moderator ~ px(150),
Speaker ~ px(150),
Title ~ px(450)
) |>
cols_align("left") |>
opt_stylize(style = 1, color = "gray")
```