api_key: Get or set API_KEY value

View source: R/api_key.R

api_keyR Documentation

Get or set API_KEY value

Description

This package will need a Weather API key residing in the environment variable API_KEY. Set it in the .Renviron file in the home directory. See vignette for more details on how to set up the API key.

Usage

api_key(force = FALSE)

Arguments

force

A boolean to force set new API key for current environment. To force set a new API key set it to TRUE, the default value is FALSE.

Value

A vector containing the API key

Examples

# api_key() # To display API Key that was set in the .Renviron file
# api_key(force=TRUE) # To change the API key, see vignette for details

evelynsugi/weatherapi documentation built on April 7, 2022, 12:43 p.m.