-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.R
More file actions
33 lines (30 loc) · 745 Bytes
/
Copy pathinit.R
File metadata and controls
33 lines (30 loc) · 745 Bytes
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
# Packages & Init Setup ---------------------------------------------------
proj_name <- "spotify"
# devtools::install_github('charlie86/spotifyr')
pkgs <-
c(
"tidyverse",
"devtools",
"fs",
"ggplot2",
"ggfortify",
"gganimate",
"magick",
"knitr",
"lubridate",
"genius",
"httpuv",
"spotifyr",
"reactable",
"initR"
)
installed_packages <- pkgs %in%
rownames(installed.packages())
if (any(installed_packages == FALSE)) {
install.packages(pkgs[!installed_packages])
}
invisible(lapply(pkgs, library, character.only = TRUE))
source("../initR/init.R")
fx.setdir(proj_name)
# Spotify API setup ---------------------------------------------------------
source('../initR/spotify/keys.R')