R/isCacheLocked.R

Defines functions isCacheLocked

Documented in isCacheLocked

#' Is the cache of a function locked?
#' @seealso \code{\link{lockCache}}
#' @param f The function to inform about its cache status
#' @export
isCacheLocked <- function(f) {
  file.exists(paste0(getCacheDir(f), '/locked'))
}
fnbn/cachifyR documentation built on May 5, 2019, 6:58 p.m.