Skip to contents

List ICES codes for a code type

Usage

ices_codes(code_type, code = "", modified = "")

Arguments

code_type

ICES code type key or GUID (e.g., "Gear").

code

Optional code key or GUID to filter the API response.

modified

Optional date string ("YYYY-MM-DD") to return codes modified after that date.

Value

Tibble of ICES codes for the requested code type. Adds a code_type column and a url column pointing at the corresponding CodeDetail API endpoint. Empty when ICES answers with no rows, and also when the request fails, which warns, naming the request.

Examples

if (FALSE) { # \dontrun{
# Needs the live ICES service; run in checks once an offline fixture exists.
gear_codes <- ices_codes("Gear")
} # }