| .ReadPredictsFileCache | R Documentation |
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)
file_predicts |
Character, the path to the saved PREDICTS database extract (as an RDS file). |
aux_file_predicts |
Character, the path to the saved PREDICTS database auxiliary metadata, saved as a JSON file. |
requested_years |
Numeric vector, the extract years to be saved. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.