ropensci / weathercan

R package for downloading weather data from Environment and Climate Change Canada
https://docs.ropensci.org/weathercan
GNU General Public License v3.0
102 stars 29 forks source link

Error received when calling weather_dl() #85

Closed macsmith26 closed 4 years ago

macsmith26 commented 4 years ago

Hello,

I received the following error when calling the example fctn to download weather data weather_dl(station_ids = 51423, start = "2018-02-01", end = "2018-04-15"):

Error in 1:grep("Date/Time", preamble$V1) : argument of length 0

steffilazerte commented 4 years ago

Hi @macsmith26 can you confirm that you're using the most recent version of weathercan (v0.3.1)?

packageVersion("weathercan")
# [1] ‘0.3.1’

If you're using v0.3.0, you'll need to update

install.package("weathercan")
packageVersion("weathercan") # double check
macsmith26 commented 4 years ago

Rookie mistake on my part. My version was 0.2.8. Updated and everything is working fine again, thanks!