Skip to content

Commit

Permalink
Merge pull request #52 from wjakethompson/final-leg
Browse files Browse the repository at this point in the history
Surprise songs from the final leg
  • Loading branch information
wjakethompson authored Dec 18, 2024
2 parents cf16d5e + 87032f3 commit 3811a8f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion data-raw/surprise-songs.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ eras_tour_surprise <- read_xlsx(here("data-raw", "surprise-songs.xlsx")) %>%
pivot_longer(cols = everything(), names_to = "type", values_to = "song") %>%
filter(!is.na(song)) %>%
filter(!(song %in% taylor_all_songs$track_name)) %>%
filter(song != "Thinking Out Loud"))
filter(!(song %in% c("Thinking Out Loud",
"Espresso", "Please Please Please",
"I Love You, I'm Sorry"))))

# Check that we're using Taylor's Version when possible. Should be 0 rows.
(not_tv <- eras_tour_surprise %>%
Expand Down
Binary file modified data-raw/surprise-songs.xlsx
Binary file not shown.
Binary file modified data/eras_tour_surprise.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/eras_tour_surprise.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion tests/testthat/test-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ test_that("surprise songs are the correct version", {
mashups <- unlist(strsplit(mashups, split = "; "))

expect_true(all(c(songs, mashups) %in%
c(taylor_all_songs$track_name, "Thinking Out Loud")))
c(taylor_all_songs$track_name,
"Thinking Out Loud",
"Espresso", "Please Please Please",
"I Love You, I'm Sorry")))

no_tv_songs <- c(songs, mashups)[grep("Taylor's Version",
eras_tour_surprise$song,
Expand Down

0 comments on commit 3811a8f

Please sign in to comment.