kth_catalog_crawl: Given an organizational "slug", a depth first traversal is...

View source: R/crawl_slug.R

kth_catalog_crawlR Documentation

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

Description

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

Usage

kth_catalog_crawl(slug)

Arguments

slug

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

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

Value

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

See Also

kth_catalog map bind

Examples

## Not run: 
if(interactive()){
 kth_catalog_crawl("j/jj")
 }

## End(Not run)

KTH-Library/bibliomatrix documentation built on Feb. 29, 2024, 5:54 a.m.