wunderscraper (version 0.1.0)

setApiKey: Set API key.

Description

Sets the API key to the value of the argument.

Usage

setApiKey(key, f = NULL)

Arguments

key

A valid Wunderground API key

f

A string indicating a text file containing only an API key

Value

The API key

Details

If f is not missing, then reads the API key from a file, else sets key to the key parameter. Does not check if key is valid. Please visit <https://www.wunderground.com/weather/api/d/pricing.html> to sign up for a free API key.

Examples

Run this code
# NOT RUN {
setApiKey('q1w2e3r4t5y6u7i8') # not a valid key
# }

Run the code above in your browser using DataLab