set_api_key_openweather: Set API key for OpenWeather

Description Usage Arguments Details Examples

View source: R/set_key.R

Description

Set your OpenWeather API key. This stores it as an environment variable so it can be used with simpleweather functions. You can install the key to your .Renviron so calling this function is not required for each R session.

Usage

1

Arguments

api_key

the api key string

Details

You can obtain an API key for free here: https://openweathermap.org/api/

Examples

1
2
3
4
## Not run: 
set_api_key_openweather("<key>")

## End(Not run)

joemarlo/simpleweather documentation built on Dec. 21, 2021, 1:19 a.m.