| reload_rmarkdown_cache | R Documentation |
Reload 'Rmarkdown' cache in the order files were created, into an R environment
reload_rmarkdown_cache(
dir = ".",
maxnum = 1000,
max_cache_name = NULL,
envir = new.env(),
file_sort = c("globals", "objects", "ctime", "mtime"),
preferred_load_types = c("lazyLoad", "load"),
dryrun = FALSE,
verbose = TRUE,
...
)
dir |
|
maxnum |
|
max_cache_name |
|
envir |
|
file_sort |
|
preferred_load_types |
|
dryrun |
|
verbose |
|
... |
additional arguments are passed to |
This function is intended to help re-load 'Rmarkdown' cache files created during the processing/rendering of an 'Rmarkdown' file.
By default, all cached R objects are loaded into the
environment defined by envir, However,
it is recommended that envir is used to define a new environment
into which the cached session is loaded.
cache_env <- new.env() reload_rmarkdown_cache(cachedir, envir=cache_env)
From then on, the cached data objects can be seen with ls(cache_env)
and retrieved with get("objectname", envir=cache_env).
If supplied with maxnum or max_cache_name then the cache
will be loaded only up to this point, and not beyond.
The recommended method to determine the cache is to use dryrun=TRUE
to view all sections, then to choose the integer number, or
character name to define the maximum chunk to load.
envir is returned invisibly, with data objects populated
into that environment.
Other jam practical functions:
breakDensity(),
call_fn_ellipsis(),
checkLightMode(),
check_pkg_installed(),
colNum2excelName(),
color_dither(),
exp2signed(),
getAxisLabel(),
isFALSEV(),
isTRUEV(),
jargs(),
kable_coloring(),
lldf(),
log2signed(),
middle(),
minorLogTicks(),
newestFile(),
printDebug(),
renameColumn(),
rmInfinite(),
rmNA(),
rmNAs(),
rmNULL(),
setPrompt()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.