#' setup the api
#'
#' Use this function to set up the usual region and key you want to use.
#'
#' Get your key at \url{https://developer.riotgames.com/}
#'
#' @param api_key a character
#' @param region a character, must be one of "br", "eune", "euw", "kr", "lan", "las", "na", "oce", "ru" or "tr"
#' @export
api_setup <- function(api_key, region){
if (!region %in% regions) stop("invalid region")
Sys.setenv(LOLAPI_REGION = region)
Sys.setenv(LOLAPI_KEY = api_key)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.