omnipath_set_cachedir {OmnipathR} | R Documentation

## Change the cache directory

### Description

Change the cache directory

### Usage

    omnipath_set_cachedir(path = NULL)

### Arguments

`path` | Character: path to the new cache directory. If don't exist, the directories will be created. If the path is an existing cache directory, the package's cache database for the current session will be loaded from the database in the directory. If `NULL`, the cache directory will be set to its default path.

### Value

Returns `NULL`.

### Examples

    tmp_cache <- tempdir()
    omnipath_set_cachedir(tmp_cache)
    # restore the default cache directory:
    omnipath_set_cachedir()

[Package OmnipathR version 3.0.0 Index]