set_api_key_noaa: Set API key for NOAA

Description Usage Arguments Details Examples

View source: R/set_key.R

Description

Set your NOAA 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://www.ncdc.noaa.gov/cdo-web/webservices/v2

Examples

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

## End(Not run)

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