This internal helper function returns a list with 3 elements: 'valid', a boolean indicating if the cache is valid; 'data', a dataframe containing the cached PREDICTS data; and 'aux', the auxiliary data loaded from the cache.
.ReadPredictsFileCache(file_predicts, aux_file_predicts, requested_years)List, a named list of three elements: 'valid', a boolean indicating if the cache is valid; 'data', a dataframe containing the cached PREDICTS data; and 'aux', the auxiliary data loaded from the cache.
Character, the path to the saved PREDICTS database extract (as an RDS file).
Character, the path to the saved PREDICTS database auxiliary metadata, saved as a JSON file.
Numeric vector, the extract years to be saved.