Repository navigation
Expand file tree
/
Copy pathindex.Rmd
More file actions
64 lines (55 loc) · 1.5 KB
/
Copy pathindex.Rmd
File metadata and controls
64 lines (55 loc) · 1.5 KB
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
---
title: "R-Ladies YouTube Video Feed"
output:
flexdashboard::flex_dashboard:
includes:
in_header: plausible.html
orientation: columns
navbar:
- { icon: "fa-github", href: "https://github.com/ivelasq/rladies-video-feed", align: right }
theme:
version: 4
bg: "#FDF7F7"
fg: "#88398A" # purple
primary: "#88398A" # purple
base_font:
google: "Lato"
---
```{r setup, include=FALSE}
library(flexdashboard)
library(bslib)
source("data-processing.R", local = knitr::knit_global())
```
Channels {.sidebar}
-----------------------------------------------------------------------
The purpose of this dashboard is to provide a running feed of R-Ladies videos posted to YouTube. It is refreshed every 24 hours.
Currently, the feed includes these channels:
```{r}
dat_join %>%
dplyr::arrange(chapter) %>%
dplyr::distinct(channel_image_url) %>%
dplyr::pull() %>%
htmltools::HTML(.noWS = "outside")
```
Column {data-width=900}
-----------------------------------------------------------------------
### By default, the list is sorted by latest video.
<style>
.dataTables_scrollBody {
max-height: 100% !important;
}
</style>
```{r}
dat_dashboard %>%
dplyr::select(-chapter, -channel_image_url) %>%
DT::datatable(
colnames = c('Date', 'Channel', 'Video'),
filter = 'top',
escape = FALSE,
height = '1000',
elementId = 'dashboard',
options = list(columnDefs = list(
list(className = 'dt-middle', targets = "_all")
))
)
```