-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.qmd
118 lines (115 loc) · 3.6 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
title: "STA 199: Introduction to Data Science"
subtitle: "Section 1 - Dr. Mine Çetinkaya-Rundel"
execute:
freeze: false
---
This page contains an outline of the topics, content, and assignments for the semester.
Note that this schedule will be updated as the semester progresses and the timeline of topics and assignments might be updated throughout the semester.
```{r, echo = FALSE, message = FALSE, warning = FALSE}
library(googlesheets4)
library(gt)
library(tidyverse)
gs4_deauth()
d <- read_sheet("https://docs.google.com/spreadsheets/d/1GCwNNWDK0yJPBraWtfZ-tmtXJsgvkLhYTCVtk6c_6js/edit?usp=sharing", sheet = "sec1-mine")
```
::: column-screen-right
```{r, echo = FALSE}
d |>
mutate(
date = as.Date(date),
week = ifelse(is.na(week), "", week)
) |>
gt() |>
text_transform(cells_body(columns = c(prepare)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("book", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('book')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(slides)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("laptop", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('laptop')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(ae)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("users", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('users')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(ae_sa)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("key", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('key')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(hw)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("keyboard", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('keyboard')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(hw_sa)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("key", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('key')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(lab)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("users-rectangle", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('users-rectangle')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(lab_sa)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("key", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('key')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(exam)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("file-circle-check", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('file-circle-check')}</a>")
)
}
) |>
text_transform(cells_body(columns = c(project)),
fn = function(x) {
ifelse(is.na(x), fontawesome::fa("users", fill_opacity = 0.1),
glue::glue("<a href = {x}>{fontawesome::fa('users')}</a>")
)
}
) |>
fmt_date(date, date_style = 30) |>
sub_missing(columns = c(date, what, topic, notes), missing_text = "") |>
cols_align(
align = "center",
columns = c(week, dow, prepare, slides, ae, ae_sa, hw, hw_sa, lab, lab_sa, exam, project)
) |>
cols_align(
align = "left",
columns = c(date, what, topic, notes)
) |>
tab_style(
style = cell_borders(
sides = "right",
color = "#D3D3D3",
style = "solid"
),
locations = cells_body(
columns = c(date, topic, prepare, ae_sa, hw_sa, lab_sa, exam, project)
)
)
```
:::