write_league_history <- function(league_ids, filename = "data-raw/master.csv"){
history <- tibble::tibble()
for(leage_id in league_ids){
history <- dplyr::bind_rows(history, get_league_history(leage_id))
}
readr::write_csv(x = history, path = filename)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.