cacheload | R Documentation |
load knitr chunk cache interactively
cacheload( chunk, path = knitr::opts_chunk$get("cache.path"), envir = parent.frame() )
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) |
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.
objects are loaded and messages returned
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.