← Back to all sparks
R

riem

ANALYTICS
Velocity0.0

:airplane: :sunny: R package for accessing ASOS data via the Iowa Environment Mesonet :cloud: :airplane: - GitHub - ropensci/riem: :airplane: R package for accessing ASOS data via

A weather-data client that keeps rewriting its HTTP layer while slowly tightening its API.

weather-dataapi-clientr-packageropenscihttp
Current state
riem pulls observations from the Iowa Environmental Mesonet's weather-station network. Its release history is two threads: successive rewrites of the HTTP and test-mocking stack, and a gradual tightening of function arguments that culminated in 1.0.0 removing convenient-but-dangerous defaults. Contributions come partly from IEM's own maintainer.
Where it's heading
The HTTP thread has moved through httr to httr2, and mocking from vcr to httptest2 — following the broader rOpenSci HTTP-stack reorganisation rather than any need of its own. The API thread runs the other way: 1.0.0 removed defaults for date_start and station and flipped latlon to FALSE, trading convenience for callers being explicit about what they request. New arguments in the same release widened what a query can ask for.
Prediction
With the API stabilised at 1.0.0 and the HTTP stack settled on httr2, the next release is more likely to expose additional IEM query parameters than to change plumbing again.

Recent moves

  1. 1y ago

    1.0.0 removes defaults and adds query arguments

    Two breaking changes that make callers state what they mean — no implied date range or station, and no latitude and longitude unless asked for — plus new data, report_type, and elev arguments. The API-tightening thread reaching its conclusion.

    View source ↗
  2. 1y ago

    Drops the last vcr usage in favour of httptest2

    Test-infrastructure only, completing the mocking migration started when the package moved to httr2. Part of the wider rOpenSci HTTP-stack reshuffle, invisible to users.

    View source ↗
  3. 2y ago

    Timezone and timestamp-parsing fixes

    Requests pin tz=UTC and a lubridate-induced parsing bug is fixed. Correctness repair on the existing surface.

    View source ↗
  4. 4y ago

    Moves to httr2 and httptest2

    The HTTP rewrite that the two releases above finish cleaning up after, bundled with better error messages. No change to what the package can fetch.

    View source ↗
  5. 4y ago

    Switches to newer IEM metadata web services

    Follows an upstream endpoint change at the data source, contributed by IEM's own maintainer. The package's dependence on a single provider's service surface is the constraint behind most of its releases.

    View source ↗
  6. 9y ago

    Reduces dependencies to tibble alone

    An early dependency trim dropping readr, lazyeval, and dplyr. The oldest entry in the window by eight years.

    View source ↗