load_index: Load and cache the dataset index

View source: R/index.R

load_indexR Documentation

Load and cache the dataset index

Description

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. The function also checks to see if there are any user modifications to the directory structure.

Usage

load_index()

Details

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.

Value

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

See Also

load_location_aliases, load_gazetteer


ImperialCollegeLondon/safe_data documentation built on Jan. 27, 2024, 9:51 a.m.