Loads the cached chunk from cache using lazy loading where possible.

load_cached_chunk(
  chunk = "unnamed-chunk",
  cache = c("knitr_cache", "cache"),
  filter,
  env = globalenv()
)

load_all_chunks(cache = c("knitr_cache", "cache"))

Arguments

chunk

Name of cached chunk (from Rmd). Can be a path to a chunk (partial), from which path will be taken.

cache

Path to the cache from which all chunks are loaded

filter

Character vector of object names to retain

env

Environment into which objects are loaded

Details

Any existing objects in the environment will be overwritten when chunk(s) are loaded.

Functions

  • load_cached_chunk(): Load a cached chunk

  • load_all_chunks(): Load all cached chunks (alphabetically)

    importFrom plyr l_ply