powered by
Currently, "B1610" is the only data item that no longer supports v1 and equally is the only data item that supports v2.
check_data_item_version(data_item, version = 1, silent = TRUE)
character; the data item to check
character/numeric; the API version, either as a number (e.g. 1) or as a case-insensitive string (e.g. "v1" or "V2"). Default is 1.
1
boolean; whether to show a warning if that version is not valid for the provided data item. Default is TRUE.
boolean; returns TRUE if data_item is valid for the provided version, FALSE if it is not
TRUE
FALSE
# NOT RUN { check_data_item_version("B1610", 1) check_data_item_version("B1710", 1) # }
Run the code above in your browser using DataLab