generated from rpodcast/r_dev_projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.qmd
141 lines (114 loc) · 3.4 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
---
title: "PodcastIndex Dashboard {{< meta params.version >}}"
format:
dashboard:
logo: assets/img/pc20logo_bluetint.svg
favicon: assets/img/favicon.ico
nav-buttons:
- github
- icon: mastodon
href: https://podcastindex.social/@rpodcast
- icon: twitter
href: https://twitter.com/theRcast
- icon: broadcast-pin
href: https://podcastindex.org
theme: [cosmo, custom.scss]
fig-cap-location: top
scrolling: true
execute:
echo: false
params:
version: "1.1.0"
dev_mode: false
pointblank_object_path: "https://podcast20-projects.us-east-1.linodeobjects.com/exports/podcastdb_pointblank_object/podcastdb_pointblank_object"
podcast_dup_df_path: "https://podcast20-projects.us-east-1.linodeobjects.com/exports/podcast_dup_df.rds"
podcast_analysis_df_path: "https://podcast20-projects.us-east-1.linodeobjects.com/exports/analysis_metrics_df.rds"
podcast_timestamp_path: "https://podcast20-projects.us-east-1.linodeobjects.com/exports/job_timestamp.txt"
podcast_log_path: "https://podcast20-projects.us-east-1.linodeobjects.com/logs/"
exports_root_path: "https://podcast20-projects.us-east-1.linodeobjects.com/exports/"
---
```{css}
/*| echo: false */
figcaption {
margin: auto;
text-align: center;
}
```
```{r}
#| context: setup
#| label: setup-chunk
# load packages
library(reactable)
library(reactablefmtr)
library(htmltools)
library(dplyr)
library(pointblank)
library(anytime)
# load supporting functions
source("R/utils.R")
source("R/fct_tables.R")
# obtain record objects from object storage
pointblank_object <- podcastdb_pointblank_object(url = params$pointblank_object_path, dev_mode = params$dev_mode)
podcast_dup_df <- podcastdb_dupdf_object(url = params$podcast_dup_df_path, dev_mode = params$dev_mode)
analysis_metrics_df <- podcastdb_analysisdf_object(url = params$podcast_analysis_df_path, dev_mode = params$dev_mode)
podcast_db_date <- podcastdb_timestamp_object(url = params$podcast_timestamp_path, dev_mode = params$dev_mode)
```
# Duplicates
## Record Summary Row
```{r}
#| label: n-groups
#| content: valuebox
#| title: "Duplicate Groups"
records <- length(unique(analysis_metrics_df$record_group))
list(
icon = 'stack',
color = 'primary',
value = number(records)
)
```
```{r}
#| label: med-n-records
#| content: valuebox
#| title: "Median records per group"
med_records <- median(analysis_metrics_df$n_records)
list(
icon = 'mic',
color = 'primary',
value = number(med_records)
)
```
## Record Analysis Row
::: {.card title="Duplicates Data Viewer"}
```{r}
#| label: duplicates-viewer
# re-order columns
analysis_metrics_df <- analysis_metrics_df |>
select(record_group, n_records, everything())
if (params$dev_mode) {
analysis_metrics_df <- dplyr::slice(analysis_metrics_df, 1:30)
}
record_analysis_table(analysis_metrics_df, podcast_dup_df, report_date = podcast_db_date)
```
:::
# Data Quality
## Pointblank validation set row
```{r}
#| label: process-pointblank-extracts
pb_extracts <- get_pointblank_data_extracts(
pointblank_object,
exports_root_path = params$exports_root_path,
dev_mode = params$dev_mode
)
```
::: {.card title="Validation Summary"}
```{r}
#| label: pointblank-viewer
pointblank_table(pointblank_object, report_date = podcast_db_date, extracts = pb_extracts)
```
:::
# Methodology
{{< include methods.md >}}
# About {orientation="columns"}
{{< include about.qmd >}}
# Changelog
{{< include NEWS.md >}}