read_cache {spatialHeatmap} | R Documentation |
Read R Objects from Cache
read_cache(dir, name, info = FALSE)
dir |
The directory path where cached data are located. It should be the path returned by save_cache. |
name |
The name of the object to retrieve, which is one of the entries in the "rname" column returned by setting |
info |
Logical, TRUE or FALSE. If TRUE (default), the information of all tracked files in cache is returned in a table. |
An R object retrieved from the cache.
Jianhai Zhang jzhan067@ucr.edu; zhang.jianhai@hotmail.com
Dr. Thomas Girke thomas.girke@ucr.edu
Lori Shepherd and Martin Morgan (2020). BiocFileCache: Manage Files Across Sessions. R package version 1.12.1.
# Save the object "iris" in the default cache "~/.cache/shm". cache.pa <- save_cache(dir=NULL, overwrite=TRUE, iris) # Retrieve "iris". iris1 <- read_cache(cache.pa, 'iris')