# query weather at Portland International in June 2018
if (FALSE) get_weather("PDX", 2018, 6)
# ...or the original nycflights13 weather dataset
if (FALSE) get_weather(c("JFK", "LGA", "EWR"), 2013)
# use the dir argument to indicate the folder to
# save the data in as "weather.rda"
if (FALSE) get_weather("PDX", 2018, 6, dir = tempdir())
Run the code above in your browser using DataLab