#' Set API Key
#'
#' Helper function to set the NOMIS API key as an environment variable
#'
#' @param key the NOMIS API Key (unique ID)
#'
#' @examples
#' \dontrun{
#' set_nomis_api('<api key here>')
#' # Check our assignment worked
#' Sys.getenv('nomis_api_key')
#'
#' #[1] "<api key here>"
#' }
#'
#' @export
set_nomis_api <- function(key){
Sys.setenv(nomis_api_key = key)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.