The wordpiece cache directory is a platform- and user-specific path where wordpiece saves caches (such as a downloaded vocabulary). You can override the default location in a few ways:
Option:
wordpiece.dirUse set_wordpiece_cache_dir to set a
specific cache directory for this session
Environment:
WORDPIECE_CACHE_DIRSet this environment variable to specify a
wordpiece cache directory for all sessions.
Environment:
R_USER_CACHE_DIRSet this environment variable to specify a cache
directory root for all packages that use the caching system.
wordpiece_cache_dir()A character vector with the normalized path to the cache.