powered by
Crawls the PXWeb API to rebuild the table index. If path is provided, the index is written to that file; otherwise only the in-memory index is refreshed.
path
nso_rebuild_px_index(path = NULL, write = !is.null(path))
A tibble containing the rebuilt table index.
Output path for JSON. If NULL (default), no file is written. For package development, use "inst/extdata/px_index.json".
NULL
"inst/extdata/px_index.json"
Whether to write JSON to path. Defaults to TRUE if path is provided, FALSE otherwise.
TRUE
FALSE
# Rebuild in-memory index only (takes time to crawl API) # \donttest{ idx <- nso_rebuild_px_index() head(idx) # }
Run the code above in your browser using DataLab