ALShum / rwunderground

A simple R package to get historical and forecast weather data
78 stars 14 forks source link

your example for the history_range does not work #36

Closed einabadi-sh closed 6 years ago

einabadi-sh commented 6 years ago

history_range(set_location(territory = "Hawaii", city = "Honolulu"), "20130101", "20130105") [1] "Requesting: http://api.wunderground.com/api/9f1784685061b77e/history_20130101/q/Hawaii/Honolulu.json" Error in (function (dt, year, month, yday, mday, wday, hour, minute, second, : Invalid timezone of input vector: "Pacific/Honolulu" [1] "Requesting: http://api.wunderground.com/api/9f1784685061b77e/history_20130102/q/Hawaii/Honolulu.json" Error in (function (dt, year, month, yday, mday, wday, hour, minute, second, : Invalid timezone of input vector: "Pacific/Honolulu" [1] "Requesting: http://api.wunderground.com/api/9f1784685061b77e/history_20130103/q/Hawaii/Honolulu.json" Error in (function (dt, year, month, yday, mday, wday, hour, minute, second, : Invalid timezone of input vector: "Pacific/Honolulu" [1] "Requesting: http://api.wunderground.com/api/9f1784685061b77e/history_20130104/q/Hawaii/Honolulu.json" Error in (function (dt, year, month, yday, mday, wday, hour, minute, second, : Invalid timezone of input vector: "Pacific/Honolulu" [1] "Requesting: http://api.wunderground.com/api/9f1784685061b77e/history_20130105/q/Hawaii/Honolulu.json" Error in (function (dt, year, month, yday, mday, wday, hour, minute, second, : Invalid timezone of input vector: "Pacific/Honolulu"

A tibble: 0 x 0

erichare commented 6 years ago

I just tested it, and it indeed works fine for me. Can you paste the output of sessionInfo() ? Seems whatever this is, its an issue upstream: https://github.com/tidyverse/lubridate/issues/603 (likely not with Lubridate though, as per that issue)

einabadi-sh commented 6 years ago

I reinstalled the package using github and every thing works fine now.

erichare commented 6 years ago

Glad to hear it!