Build Status AppVeyor Build Status codecov CRAN_Status_Badge

knitr::opts_chunk$set(echo = TRUE)

WORK IN PROGRESS

lastfmr is an R interface to Last.fm.

Installation

install.packages("devtools")
devtools::install_github("juyeongkim/lastfmr")

Get API Key

Sys.setenv(lastfm_key = "yourAPIKey")

Examples

Get user's top 5 artists

library(lastfmr)
top5 <- user_getTopArtists("platyjus", limit = 5)

dplyr::glimpse(top5)

top5$name

Get album information

fearfun <- album_getInfo("Father John Misty", "Fear Fun")

dplyr::glimpse(fearfun)

fearfun$tracks[[1]][, c("name", "duration")]


juyeongkim/lastfmr documentation built on June 6, 2019, 12:07 a.m.