
Fetch validated OSRM versions from per-OS badge JSON
Source:R/osrm_validated_versions.R
osrm_validated_versions.RdThe package's live integration workflow publishes per-OS JSON "badges"
(for example osrm_versions_ubuntu.json) to the badges branch. These
files contain a short message describing the validated range or latest
validated versions. This helper fetches that JSON and (optionally) expands
a range to the list of release tags available in the e-kotov/osrm-binaries
repository.
Usage
osrm_validated_versions(
os = c("linux", "macos", "windows", "all"),
repo = "e-kotov/osrm.backend",
branch = "badges",
expand = TRUE,
gh_token = NULL
)Arguments
- os
Character, one of
"linux","macos","windows", or"all"."linux"reads theosrm_versions_ubuntu.jsonbadge."all"returns a named list with entries for each OS.- repo
Character, repository hosting the badges. Defaults to
"e-kotov/osrm.backend".- branch
Character, the branch where badges are stored. Defaults to
"badges".- expand
Logical, if
TRUEand the badge message encodes a simple range (e.g.v5.27.1 - v26.7.3), attempt to expand the range to the list of available release tags frome-kotov/osrm-binaries. If expansion fails, the function falls back to returning the raw badge message.- gh_token
Optional GitHub token for API requests. By default the function does not use authentication (public raw.githubusercontent URLs).