R/showcache.R

Defines functions show.module.cache

Documented in show.module.cache

#' Prints the current file cache
#'
#' @param all.names a logical value. If TRUE, all object names are returned. If FALSE,
#'                  names which begin with a . are omitted.
#'
#' @return Nothing is returned, however, the contents of the module cache are printed to the standard output.
#' @export
#'
#' @examples
#' show.module.cache()
#' show.module.cache(all.names = TRUE)
show.module.cache <- function(all.names = FALSE) {
  cat("--- module cache ---\n")
  for (v in ls(module.cache, all.names = all.names)) {
    print(paste0(v, ': ', module.cache[[v]]), quote=FALSE)
  }
}
rickwargo/lrequire documentation built on May 27, 2019, 8:48 a.m.