Description Usage Arguments Details Value Author(s) Examples
View source: R/get_discography_lyrics.R
This function gets the lyrics of the desired song.
1 2 | get_discography_lyrics(artist_id, cores = detectCores(),
access_token = Sys.getenv("GENIUS_API_TOKEN"))
|
artist_id |
Genius Artist ID |
cores |
Number of cores to use for parallel computing. Default: parallel::detectCores() |
access_token |
Genius Web API token. Defaults to Sys.getenv('GENIUS_API_TOKEN'). |
To use this function, you need to first use 'search_genius_artist' to get the artist ID. This function uses parallel processing to increase performance. Use the different cores of your device to achieve this, so there may be noticeable differences in performance depending on the device.
Returns a named list containing all the lyrics of the artist's songs.
Alberto Almuiña
1 2 3 4 | ## Not run:
get_discography_lyrics('343657', cores = 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.