Convenience function to flexibly save and restore an already processed expression data compendium via caching.
See also
loadEData
, R_user_dir
,
BiocFileCache
Examples
# load user-defined expression compendium
data.dir <- system.file("extdata/myEData", package = "GSEABenchmarkeR")
edat <- loadEData(data.dir)
# do some processing of the compendium
edat <- lapply(edat, function(d) d[1:50,])
# cache it ...
cacheResource(edat, "myEData")
# ... and restore it at a later time
edat <- loadEData(data.dir, cache = TRUE)