Learn R Programming

rwunderground (version 0.1.8)

alerts: 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

Run this code
# 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"))
# }

Run the code above in your browser using DataLab