set_cache_size: set_cache_size

Description Usage Arguments Examples

View source: R/cache_system.R

Description

set_cache_size is a atlasplot helper function that allows the user to decide the amount of storage they'd like to allocate to the on disk file cache. All of the functions using the Allen Institute API make use of the cache. If cache size is exceeded, the oldest item are removed.

Usage

1

Arguments

size

number of bytes allocated to the cache; default 2e9. size = FALSE disables cacheing

Examples

1
2
3
4
5
# set cache to 10 kilobyte
set_cache_size(10000)

# turn off cache
set_cache_size(FALSE)

AllenInstitute/atlasplot documentation built on Aug. 11, 2021, 1:52 a.m.