io_set_cache_dir: Set paths to cache large IO downloads

View source: R/io_set_cache_dir.R

io_set_cache_dirR Documentation

Set paths to cache large IO downloads

Description

Set paths to cache large IO downloads

Usage

io_set_cache_dir(cache_dir = NULL, io_database = NULL)

Arguments

cache_dir

If set to a character this will replace the current cache path stored in the iotr configs.

io_database

For which database should the cache directory be set. Current options are 'wiod' or 'icio'.

Details

Several ⁠io_dl_*⁠ and ⁠io_load_*⁠ functions ask for a cache directory to cache several large IO data files in order to avoid repeated downloads. This function is a helper to (re)set the folder paths where to keep these files. The given path is stored in a config file (at the user configs location obtained from package rappdirs). Manually call this funtion with a new path to reset it.

Value

Returns path to the respective cache directory.


okrebs/iotr documentation built on Aug. 22, 2023, 12:06 p.m.