R/nixtla_set_api_key.R

Defines functions nixtla_set_api_key

Documented in nixtla_set_api_key

#' Set 'API' key in global environment
#'
#' This function will be deprecated in future versions. Please use `nixtla_client_setup` instead.
#'
#' @param api_key The user's 'API' key. Get yours here: https://www.nixtla.io/dashboard
#'
#' @return A message indicating the 'API' key has been set in the global environment.
#' @export
#'
#' @examples
#' \dontrun{
#'   nixtlar::nixtla_set_api_key("Your API key")
#' }
#'
nixtla_set_api_key <- function(api_key) {
  nixtla_client_setup(base_url = NULL, api_key = api_key)
}

Try the nixtlar package in your browser

Any scripts or data that you put into this service are public.

nixtlar documentation built on June 23, 2026, 9:06 a.m.