Learn R Programming

eia (version 0.4.2)

eia_clear_cache: Clear API results cache

Description

Reset the results of API calls that are currently cached in memory.

Usage

eia_clear_cache()

eia_clear_dir()

eia_clear_metadata()

eia_clear_data()

eia_clear_facets()

Arguments

Details

eia_clear_cache() clears the entire cache. The other functions clear the cache associated with specific endpoints.

Examples

Run this code
if (FALSE) {
key <- Sys.getenv("EIA_KEY") # your stored API key
system.time(eia_dir(key))
system.time(eia_dir(key))
eia_clear_cache()
system.time(eia_dir(key))
}

Run the code above in your browser using DataLab