fetch_from_cache: Helper function for fetching a file from a cache directory.

Description Usage Arguments Value

View source: R/s3cache.R

Description

This function will also test to determine whether the file has been modified on S3 since the last cache save. If the file has never been cached or the cache is invalidated, it will return s3mpi::not_cached.

Usage

1
fetch_from_cache(key, cache_dir)

Arguments

key

character. The key under which the cache entry is stored.

cache_dir

character. The cache directory. The default is cache_directory().

Value

the cached object if the cache has not invalidated. Otherwise, return s3mpi::not_cached.


robertzk/s3mpi documentation built on May 27, 2019, 11:37 a.m.