R/cache_all.R

Defines functions cache_all

Documented in cache_all

#' cache_all
#'
#' cache all objects
#'
#' @param ... additional arguments passed to [cache_write()]
#' @param envir environment from which to find objects to save.
#'
#' @seealso
#'  - [base::save()]
#'
#' @export

cache_all <- function( ..., envir=parent.frame() ) {

  for( nm in ls( envir=envir ) )
    cache_write( get(nm, envir), nm, ...)

}
decisionpatterns/cache documentation built on June 15, 2020, 9:35 p.m.