alerts: Weather Alerts for United States and Europe

Description Usage Arguments Value Examples

View source: R/alerts.R

Description

Weather Alerts for United States and Europe

Usage

1
2
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

1
2
3
4
5
6
7
## 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)

ALShum/rwunderground documentation built on May 3, 2018, 11:28 p.m.