cacheload: load knitr chunk cache interactively

View source: R/cacheload.R

cacheloadR Documentation

load knitr chunk cache interactively

Description

load knitr chunk cache interactively

Usage

cacheload(
  chunk,
  path = knitr::opts_chunk$get("cache.path"),
  envir = parent.frame()
)

Arguments

chunk

character, the name of the chunk

path

character, the path to the cache location (by default it's the one set up by knitr)

envir

character, the environment to load the objects into (default is the parent of the function)

Details

The function borrows heavily from the qwraps2 package (via https://github.com/dewittpe/qwraps2).

The messages that display which objects, if any, were loaded and which class they belong to might not be entirely reliable.

Value

objects are loaded and messages returned


gobbios/cfp documentation built on April 11, 2022, 2:22 a.m.