knitr::opts_chunk$set(echo = TRUE)
WORK IN PROGRESS
lastfmr
is an R interface to Last.fm.
install.packages("devtools") devtools::install_github("juyeongkim/lastfmr")
Sys.setenv(lastfm_key = "yourAPIKey")
library(lastfmr) top5 <- user_getTopArtists("platyjus", limit = 5) dplyr::glimpse(top5) top5$name
fearfun <- album_getInfo("Father John Misty", "Fear Fun") dplyr::glimpse(fearfun) fearfun$tracks[[1]][, c("name", "duration")]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.