read file with caching
yread_tsv(
file,
reader = utils::read.delim,
params = list(),
cache_dir = tempdir()
)yread(file, reader = readLines, params = list(), cache_dir = NULL)
the output of using the 'reader' to read the 'file_url' with parameters specified by the 'params'
a file or url
a function to read the 'file_url'
a list of parameters that passed to the 'reader'
a folder to store cache files. If set to NULL will disable cache.
Yonghe Xia and Guangchuang Yu
This function read a file (local or url) and cache the content.