an_cache_directory: The cache directory used by antanym

View source: R/load.R

an_cache_directoryR Documentation

The cache directory used by antanym

Description

The cache directory used by antanym

Usage

an_cache_directory(cache)

Arguments

cache

string: the gazetteer data can be cached locally, so that it can be used offline later. Valid values are "session", "persistent", or a directory name. Specifying cache="session" will use a temporary directory that persists only for the current session. cache="persistent" will use rappdirs::user_cache_dir() to determine the appropriate directory to use. Otherwise, the input string will be assumed to be the path to the directory to use

Value

directory path

See Also

an_read

Examples

## per-session caching
an_cache_directory(cache = "session")

## persistent caching that will keep the data from one R session to the next
an_cache_directory(cache = "persistent")


SCAR/antanym documentation built on Sept. 13, 2022, 6:27 p.m.