Description Details Lab5 functions
The Lab5 package consists of some functions which requests data from the Swedish Radio Open API and saves that data in .csv files for use with Shinyapp. The file encoding works in windows only.
Package imports packages httr and saves files using fileEncoding = "UTF-8"
get_channels The function get_channels returns a data frame with all the
channels and channel ids of SR.
get_programs The function
get_programs takes data frame produced by get_channels and returns a data frame
with all the non-archived radio programmes and their broadcast channels.
get_song The function
get_song takes a radio channel character name and the data frame produced by get_channels and returns
the name of the current programme and programme episode on that radio channel.
main The function main saves data frames returned
by the other functions and saves them in .csv files in directory one up and two down into Shinyapp/data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.