Given an organizational "slug", a depth first traversal is made enumerating organizational units (descendants)

kth_catalog_crawl(slug)

Arguments

slug

a string with the slug, for example "j/jj"

Value

a tibble encoding descendants as a hierarchy (using parent_id, child_id tuples)

Details

this fcn should be moved to the kthapi package... please avoid using this fcn too often as it descends recursively and generates several API calls; instead please cache the results and try to avoid hammering the API

See also

Examples

if (FALSE) { # \dontrun{
if(interactive()){
 kth_catalog_crawl("j/jj")
 }
} # }