Skip to content

Commit e74c287

Browse files
authored
Fix medium article bug. (#44)
It looks like urltools errors with urls that contain an `@`, maybe? This should get a long-term fix, but for now this appears to work.
1 parent f295398 commit e74c287

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: ttmeta
22
Title: TidyTuesday Dataset Metadata
3-
Version: 0.1.0.20250324
3+
Version: 0.1.0.20250329
44
Authors@R:
55
person("Jon", "Harmon", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-4781-4346"))

R/urls.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ parse_tt_urls <- function(tt_tbl) {
8181
type = factor(
8282
stringr::str_remove(.data$type, "_urls$"),
8383
levels = c("article", "source")
84+
),
85+
# TODO: Sort out a permanent fix.
86+
url = stringr::str_replace(
87+
.data$url,
88+
"medium.com/@",
89+
"medium.com/"
8490
)
8591
)
8692
)

data/tt_datasets_metadata.rda

932 Bytes
Binary file not shown.

data/tt_summary_tbl.rda

-172 Bytes
Binary file not shown.

data/tt_urls_tbl.rda

62 Bytes
Binary file not shown.

ttmeta.Rproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Version: 1.0
2+
ProjectId: e274f9be-0d28-4b20-a361-c171d352e50b
23

34
RestoreWorkspace: No
45
SaveWorkspace: No

0 commit comments

Comments
 (0)