httptest
cachedDownload
. Use GET(url, config=write_disk(destfile))
instead, which caches normally.New cached request functions:
cachedPOST()
to cache results of a POST request for resources where a POST gets content and does not alter server state.cachedDownload
to cache the result of download.file
.Functions to access the cache API:
hitCache()
to check for the existence of a cache entrygetCache()
to read itsetCache()
to set a cache valuebuildCacheKey()
to construct a cache key that incorporates the request's query parameters and body.Tools to save and restore cached queries across R sessions:
saveCache()
loadCache()
Logging improvements:
loadLogfile()
for when reading a log with only CACHE messagesGET()
GET()
not to check cache if an uncached request is made. Previously, uncached()
checked cache but did not write to the cache.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.