← Back to all sparks
R

rapr

INFRA · APIS
Velocity0.0

R package rapr by brownag — release notes from GitHub.

rapr generalises its Rangeland Analysis Platform API access one endpoint at a time

remote-sensingrangelandgeospatialapi-clientrasterr-package
Current state
rapr pulls Rangeland Analysis Platform data into R — vegetation cover and production rasters derived from Landsat and Sentinel-2, plus the tabular summary APIs. The 1.1.3 release replaces the single-purpose table function with a general get_rap_table() covering the cover, coverMeteorology, production and production16day endpoints. The package reached CRAN in 2025 and is maintained by brownag, who also maintains the GeoPackage interface gpkg.
Where it's heading
The shape is familiar for a young API client: add access to one endpoint, then generalise it once a second endpoint proves the pattern. get_rap_production16day_table() arrived in 1.1.0 and was deprecated three releases later in favour of a product argument. Between those, the work was error handling — empty geometries, server-side HTTP failures, warning timing — the unglamorous half of wrapping a remote service. The 1.0.0 release had already set the ambition by exposing both the 30m Landsat and 10m Sentinel-2 sources behind one argument.
Prediction
Expect the remaining RAP endpoints to be folded into get_rap_table() as they are needed, and the deprecated 16-day function to be removed once the general interface has been out long enough.

Recent moves

  1. 5mo ago

    Unified get_rap_table() replaces the single-endpoint function

    A contributed generalisation: get_rap_table() covers cover, coverMeteorology, production and production16day through one product argument, deprecating the function that served only the last of those. URLs also move to HTTPS. It is the point where tabular access stops being a special case and becomes an interface.

    View source ↗
  2. 6mo ago

    rapr 1.1.2

    CRAN check skip logic fixed, and warnings in the table function now surface immediately rather than at the end of evaluation. Small correctness housekeeping between feature releases.

    View source ↗
  3. 9mo ago

    Tabular 16-day production API access, plus error handling

    A cumulative entry carrying 1.1.0's addition of get_rap_production16day_table() alongside its own fixes for empty geometries and server-side HTTP errors. The function introduced here is the one generalised away two releases later — a short life, but it established that tabular endpoints belonged in the package.

    View source ↗
  4. 1y ago

    CRAN release adds 10m Sentinel-2 source and grid templating

    The CRAN debut, and the release that doubled what the package can fetch: a source argument toggles between the 30m Landsat and 10m Sentinel-2 RAP products, while template controls the target grid, defaulting to each source's native system and falling back to EPSG:5070 for large multi-zone areas. Resolution and reprojection both become the caller's choice.

    View source ↗
  5. 1y ago

    Final 0.1.x snapshot before the 1.x rewrite

    A marker release capturing three years of 0.1.x behaviour before the 1.0.0 changes landed, with the notes warning that back-end behaviour, default arguments, temp file handling and SpatRaster structure would all change. Useful as a pin for existing scripts, but it ships nothing new.

    View source ↗