ots_cache: Caching wrapper to reduce API calls (internal)

View source: R/ots_cache.R

ots_cacheR Documentation

Caching wrapper to reduce API calls (internal)

Description

Eases saving the data downloaded from api.tradestatistics.io and prevents ots_read_from_api() from downloading the same twice.

Usage

ots_cache(use_cache, file, ...)

Arguments

use_cache

Logical to save and load from cache. If TRUE, the results will be cached in memory if file is NULL or on disk if 'file' is not NULL.

file

Character with the full file path to save the data.

...

Additional parameters inherited from ots_create_tidy_data().


tradestatistics documentation built on July 9, 2023, 5:33 p.m.