R/unlockCache.R

Defines functions unlockCache

Documented in unlockCache

#' Unlock a cache
#' @seealso \code{\link{lockCache}}
#' param f The function to unlock the cache from
#' @export
unlockCache <- function(f) {
  if (isCacheLocked(f))
    file.remove(paste0(getCacheDir(f), '/locked'))
  invisible(NULL)
}
fnbn/cachifyR documentation built on May 5, 2019, 6:58 p.m.