alerts {rwunderground}R Documentation

Weather Alerts for United States and Europe

Description

Weather Alerts for United States and Europe

Usage

alerts(location, key = get_api_key(), raw = FALSE, raw_JSON = FALSE,
  message = TRUE)

Arguments

location

location set by set_location

key

weather underground API key

raw

if TRUE return raw httr object

raw_JSON

if TRUE return entire alert as JSON

message

if TRUE print out requested URL

Value

A string containing alert type, message, start time and expiration.

Examples

## Not run: 
alerts(set_location(territory = "Hawaii", city = "Honolulu"))
alerts(set_location(airport_code = "SEA"))
alerts(set_location(zip_code = "90210"))
alerts(set_location(territory = "IR", city = "Tehran"))

## End(Not run)

[Package rwunderground version 0.1.8 Index]