cache = TRUE
, a cache
database will be established after the document is compiled. You can use this
function to manually load the database anywhere in the document (even before
the code chunk). This makes it possible to use objects created later in the
document earlier, e.g. in an inline R expression before the cached code
chunk, which is normally not possible because load_cache(label, object, notfound = "NOT AVAILABLE",
path = opts_chunk$get("cache.path"), lazy = TRUE)
NULL
is returned)object
cannot be foundcache.path
)lazyLoad
the cache database (depending
on the chunk option cache.lazy = TRUE
or FALSE
of that code
chunk)NULL
when object
is not specified (the cache
database will be loaded as a side effect), otherwise the value of the
object if found.