View source: R/osrm_validated_versions.R
| osrm_validated_versions | R Documentation |
The 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.
osrm_validated_versions(
os = c("linux", "macos", "windows", "all"),
repo = "e-kotov/osrm.backend",
branch = "badges",
expand = TRUE,
gh_token = NULL
)
os |
Character, one of |
repo |
Character, repository hosting the badges. Defaults to
|
branch |
Character, the branch where badges are stored. Defaults to
|
expand |
Logical, if |
gh_token |
Optional GitHub token for API requests. By default the function does not use authentication (public raw.githubusercontent URLs). |
If os != "all": a list with elements label, message, raw
(the parsed JSON). If expand = TRUE and expansion succeeded, returns a
character vector of tag names (newest first). If os = "all", returns a
named list with one entry per OS.
## Not run:
osrm_validated_versions("linux")
osrm_validated_versions("all", expand = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.