Verified Commit fd8e4a3f authored by Frie's avatar Frie

add missing packages

parent bfb301c0
......@@ -16,7 +16,7 @@ Follow the instructions in the [spotifyr](https://github.com/charlie86/spotifyr)
## Execute
**Manually** step through the `drop_audiobooks.Rmd`.
:warning: do not knit it as it includes manual steps (line 63) to determine how many albums need to be removed from "liked songs"!! :warning:
:warning: do not knit it as it includes manual steps (R chunk `select-n-audiobooks`) to determine how many albums need to be removed from "liked songs"!! :warning:
## Caveats
Not tested whether there could be API limit restrictions. With ~1500 liked tracks I did not run into any problems, but could be different for larger "liked songs" playlists.
......@@ -12,6 +12,10 @@ library(spotifyr)
library(dplyr)
library(purrr)
library(jsonlite)
library(httr)
library(usethis)
library(readr)
library(glue)
```
```{r}
access_token <- spotifyr::get_spotify_access_token()
......@@ -57,7 +61,7 @@ all_tracks_by_album
```
```{r}
```{r select-n-audiobooks}
# select the audiobooks / the n longest albums and extract the ids
audiobooks_id <- all_tracks_by_album %>%
head(3) %>% # from the manual investigation, i had three audiobooks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment