This functions are used to access the latest href, version and edition of a dataset.

ons_latest_href(id = NULL)

ons_latest_version(id = NULL)

ons_latest_edition(id = NULL)

Arguments

id

[character] Id that represents a dataset.

Value

An atomic character vector with the latest info.

Examples

# \donttest{
ons_latest_href("cpih01")
#> [1] "https://api.beta.ons.gov.uk/v1/datasets/cpih01/editions/time-series/versions/18"
ons_latest_version("cpih01")
#> [1] "18"
ons_latest_edition("cpih01")
#> [1] "time-series"
# }