R/resetcache.R

Defines functions reset.module.cache

Documented in reset.module.cache

#' Resets the module cache, ensuring files are loaded on next require
#'
#' Note the chace contains other hidden variables, kept in the cache (or environment). These are not removed,
#' and removing them will conflict with the ability of \code{\link{lrequire}} to perform properly.
#'
#' @return Nothing is returned
#' @export
#'
#' @examples
#' reset.module.cache()
reset.module.cache <- function() {
  remove(list = ls(module.cache), envir = module.cache)
}

Try the lrequire package in your browser

Any scripts or data that you put into this service are public.

lrequire documentation built on May 1, 2019, 6:49 p.m.