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.

sp_load_codelist(path, n = NULL)

Arguments

path

Path to a file as returned by sp_get_codelist_file()

n

Number of rows to return. Default (NULL) means all. Useful for quickly inspecting a codelist.

Value

a tibble

Examples

if (FALSE) { # \dontrun{
cf <- sp_get_codelist_file("druhuj")
sp_load_codelist(cf)
} # }