A weather station data scrapper in R

This R code scrape publicly available weather station data given a weather station ID and a date range. I patched an existing source code from UC Davis so it's not my original code. Thought I'd share it here anyway. It doesn't fail safely though because a null return value would break the fetching loop.