Return the version of the data

return_correct_version(
  version = NULL,
  release_version = NULL,
  ppp_version = NULL,
  identity = "PROD",
  versions_available
)

Arguments

version

Data version. Defaults to most recent version. See api/v1/versions

release_version

date when the data was published in YYYYMMDD format

ppp_version

ppp year to be used

identity

One of "PROD" (production), "INT" (internal) and "TEST"

versions_available

character vector of all the versions available

Value

character