load_index: Load and cache the dataset index

View source: R/index.R

load_indexR Documentation

Load and cache the dataset index


This function loads the dataset record index from the JSON file in the SAFE data directory and sets which datasets are currently available and which records are the most recent available under a given concept.




When any of the three index files (index.json, gazetteer.geojson and location_aliases.csv) are loaded, the file contents are cached in memory to reduce load times. The cache is within an environment that is not exported in the package namespace and is not intended to be user accessible.


Returns NULL invisibly - use get_index() to obtain the index data.

See Also

load_location_aliases, load_gazetteer

safedata documentation built on April 25, 2022, 5:05 p.m.