This function returns an artist's discography on Spotify

get_artist_albums(artist = NULL, album_types = "album",
  return_closest_artist = TRUE,
  access_token = get_spotify_access_token(), parallelize = FALSE,
  future_plan = "multiprocess")

Arguments

artist

String of artist name or Spotify artist URI

album_types

Character vector of album types to include. Valid values are "album", "single", "appears_on", and "compilation". Defaults to "album".

access_token

Spotify Web API token. Defaults to spotifyr::get_spotify_access_token()

parallelize

Boolean determining to run in parallel or not. Defaults to FALSE.

future_plan

String determining how `future()`s are resolved when `parallelize == TRUE`. Defaults to multiprocess.

Examples

# NOT RUN {
albums <- get_artist_albums('radiohead')
# }