sp_get_codelist_url: Get URL of a given codelist

sp_get_codelist_urlR Documentation

Get URL of a given codelist

Description

This is normally called inside sp_get_codelist() but can be used separately if finer-grained control of intermediate outputs is needed, e.g. in a {targets} workflow.

Usage

sp_get_codelist_url(codelist_id, check_if_exists = TRUE)

Arguments

codelist_id

DESCRIPTION.

check_if_exists

Whether to check that the URL works (HTTP 200).

Value

character vector of length one containing URL

See Also

Other Detailed workflow: sp_get_codelist_file(), sp_get_dataset_url(), sp_get_table_file(), sp_load_codelist(), sp_load_table()

Examples

## Not run: 
sp_get_codelist_url("ucjed", FALSE)
if(FALSE) sp_get_codelist_url("ucjed_wrong", TRUE) # fails, invalid codelist

## End(Not run)

statnipokladna documentation built on Sept. 11, 2024, 8:08 p.m.